Please use crontab –l command to confirm crontab job uses above code or not. To store the output of cron commands, we have used /tmp/backup.log file. # remote server directory path in which backup needs to be put inĠ 0 * * * remote_backup_night.sh >/tmp/backup.log 2>&1 # local directory containing source backup file Here I am going to make a script called “remote_backup_day.sh” # vim remote_backup_day.sh If anyone wants to have backup every hour, he/she has to make changes accordingly in crontab file. Here, the script is working in a cron job which uploads backup file at every 6 hours, then it will overwrite older backup file. Following script will use standard Linux FTP commands to place one system’s backup file to other remote system. One can execute any script file containing as a jobs at specified date and time. In Linux Operating System cron daemon is used to schedule jobs and commands at regular interval. For some servers, though not provide FTP service, FTP client is necessary to be installed so that the client can send files to an FTP server if required. FTP service is very important to ensure the transfer of files can be done. The File Transfer Protocol (FTP) is used to transfer files between two computers over a network and Internet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |