04-12-2018, 01:13 PM
(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
Code: (Select All)
chmod +x backup.sh
Then after that, I add to crontab
Code: (Select All)
sudo crontab -e
Then inside the crontab, I insert,
Code: (Select All)
0 0 * * * /pathtobackupfile
Btw, to make crontab working, I should reboot my VPS.