arrow_upward

Pages (2):
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
GBackup, by HMR (need help)
#11
(04-11-2018, 03:47 PM)youssefbasha Wrote: Where to add this backup script? (name)
I installed everything but now waiting to select the db backup and etc so i want to edit it.

Ah, I forgot that.
I named that script as backup.sh.
And after that, change permission to +x
chmod +x backup.sh
Use sudo if required.

Then after that, I add to crontab
sudo crontab -e
Why to use sudo? Because of, my VPS, to access other user directory, or /etc folder, I should act as root user.

Then inside the crontab, I insert,
0 0 * * * /pathtobackupfile
So, it will upload to gdrive in 12.00AM everyday.

Btw, to make crontab working, I should reboot my VPS.
Thanks to Limitless Hosting and Post4VPS for providing me excellent VPS 13!
#12
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)
#13
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?
#14
(04-12-2018, 07:36 PM)perryoo11 Wrote: 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?

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)
Thanks to Limitless Hosting and Post4VPS for providing me excellent VPS 13!
#15
Backuped files and didn't backup mysql Sad
Tiwil's script did the files but cant connect to MySQL
Pages (2):


person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting