![]() |
GBackup, by HMR (need help) - Printable Version +- Post4VPS Forum | Free VPS Provider (https://post4vps.com) +-- Forum: VPS Discussion (https://post4vps.com/Forum-VPS-Discussion) +--- Forum: VPS Support (https://post4vps.com/Forum-VPS-Support) +--- Thread: GBackup, by HMR (need help) (/Thread-GBackup-by-HMR-need-help) Pages:
1
2
|
RE: GBackup, by HMR (need help) - tiwil - 04-12-2018 (04-11-2018, 03:47 PM)youssefbasha Wrote: Where to add this backup script? (name) Ah, I forgot that. I named that script as backup.sh. And after that, change permission to +x Code: chmod +x backup.sh Then after that, I add to crontab Code: sudo crontab -e Then inside the crontab, I insert, Code: 0 0 * * * /pathtobackupfile Btw, to make crontab working, I should reboot my VPS. RE: GBackup, by HMR (need help) - youssefbasha - 04-12-2018 root@vps4:~# cd /usr/bin/ root@vps4:/usr/bin# chmod +x backup.sh root@vps4:/usr/bin# backup.sh Starting backup /usr/bin/backup.sh: 23: /usr/bin/backup.sh: cannot create /home/youssefbasha/backups/mysql/ERROR2002(HY000):Can'tconnecttolocalMySQLserverthroughsocket'/var/run/mysqld/mysqld.sock'(2).sql: Directory nonexistent tar: Removing leading `/' from member names What to do with this? If you have discord then gimme ur username (better and faster) RE: GBackup, by HMR (need help) - perry - 04-12-2018 just a quick look at but @youssefbasha are you sure this is mysql? and as i see the script is based on @dynamos version @tiwil have you done this on another os? RE: GBackup, by HMR (need help) - tiwil - 04-13-2018 (04-12-2018, 07:36 PM)perryoo11 Wrote: just a quick look at but @youssefbasha are you sure this is mysql? Dynamo's script? I've done with my Ubuntu, but not working. Then I created my own script, it works perfectly with my Ubuntu 16.04 (same OS as @youssefbasha) RE: GBackup, by HMR (need help) - youssefbasha - 04-18-2018 Backuped files and didn't backup mysql ![]() Tiwil's script did the files but cant connect to MySQL |