You can make full and incremental copies of your server
$ apt install ncftp
You must configure the following parameters to make the custom copy
You will enter the folders you want to copy.
DIRS="/var /lib"
You must enter the data to access by FTP.
FTPU="USER-FTP"
FTPP="PASS-FTP"
FTPS="HOST-FTP"
You must add the url of the discord webhook to notify the copy.
WEBHOOK="url"
To create a cron task so that the script runs every day at 24:00 PM we must do the following
crontab -e
Now we will add this line at the end of the whole
0 0 * * /router_script
$ chmod +x backup.sh
$ ./backup.sh