This too requires that your system can send email externally. The crontab will be opened in the default text editor. If you choose forwarding, you must have an MTA that's capable of sending mail externally (“ smarthost”).Īlternatively, set the MAIL variable in the crontab to make it send the email directly to that address. To edit our crontab and add a new cron job, all we have to do is to execute the following command: crontab -e. old to the backup files, i.e., file01.txt would be copied into, and then file01.txt would be updated with the new information.
#Grsync chron full
The files for jobs configured to be run by a crontab must be executable and the crontab entry must call out the full path to that executable file just as any other command requires when run. To change the suffix of the file that is created as a backup, we use the -suffix parameter, e.g.: rsync -ab -suffix.old source/ destination/. Instead of reading your email locally, you can create a file ~/.forward containing an external email address, and all your local email will be forwarded there. and entries in /etc/crontab (system cron jobs) or a users crontab under /var/spool/cron are where the jobs are configured to be run if not a default config. Once local email is set up, you can read your local email with your favorite mail client.
#Grsync chron install
Or just install a common MTA such as Exim or Postfix and configure it for local delivery only (see e.g. this thread for Ubuntu, or Minimal MTA that delivers mail locally (for cron)? if you absolutely want something minimalistic. If your doesn't, install a mail transfer agent (MTA). Grsync can be use to synchronize a music collection with removable devices, backup personal files to a networked drive, replication of a partition to another one, mirroring of files, etc. Its a cross platform tool, works on Linux, Windows OS and Mac OS. Many modern distributions don't set up local email. Grsync is a graphical user interface front-end for the rsync tool. This feature is built into cron! If the command produces any output, or if it returns a nonzero status, then cron sends you an email.