arrow_upward

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!


Messages In This Thread
GBackup, by HMR (need help) - by youssefbasha - 04-10-2018, 07:59 PM
RE: GBackup, by HMR (need help) - by tiwil - 04-11-2018, 01:41 AM
RE: GBackup, by HMR (need help) - by youssefbasha - 04-11-2018, 06:18 AM
RE: GBackup, by HMR (need help) - by perry - 04-11-2018, 08:59 AM
RE: GBackup, by HMR (need help) - by youssefbasha - 04-11-2018, 11:44 AM
RE: GBackup, by HMR (need help) - by perry - 04-11-2018, 11:53 AM
RE: GBackup, by HMR (need help) - by tiwil - 04-11-2018, 01:43 PM
RE: GBackup, by HMR (need help) - by youssefbasha - 04-11-2018, 01:46 PM
RE: GBackup, by HMR (need help) - by tiwil - 04-11-2018, 03:35 PM
RE: GBackup, by HMR (need help) - by youssefbasha - 04-11-2018, 03:47 PM
RE: GBackup, by HMR (need help) - by tiwil - 04-12-2018, 01:13 PM
RE: GBackup, by HMR (need help) - by youssefbasha - 04-12-2018, 01:17 PM
RE: GBackup, by HMR (need help) - by perry - 04-12-2018, 07:36 PM
RE: GBackup, by HMR (need help) - by tiwil - 04-13-2018, 03:40 AM
RE: GBackup, by HMR (need help) - by youssefbasha - 04-18-2018, 07:37 AM

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