Most people will just want a simple weekly or daily backup, and what we have shown you can easily accomplish that. In the above cron it is scheduled to perform automatic backup on daily at 2:30 PM. # crontab -eģ0 2 * * * rsync -avz -e "ssh -i /home/user/.ssh/id_rsa" /root/test/ :/backup/destination/directory/Īfter you are done configuring Cron, press escape, and then type “:wq” (without the quotes) and press enter. Now set cron jop for automate this process on scheduled time. Still if your are getting problem, please make sure you have set proper permission to read from the source “ /root/test/” and to write to the target “ :/backup/destination/directory/” also make sure ssh session is establishing between the two hosts without password. # rsync -avz -e "ssh -i /home/user/.ssh/id_rsa" /root/test/ :/backup/destination/directory/ Rsync should now complete without prompting for a password. Now you should be able to SSH into the remote machine without password.
We also learned how to add source and destination into Grsync and take routine backups on our system.Suggested Read : Steps To Setup SSH Login Without Password
In this guide, we learned how to install and remove Grsync which is a nice backup utility. Run following simple commands, and Grsync will be gone.
Running rsync is also the same as Grsync as both are mirrors to each other. You would only need to use the following command to run Grsync to run it via the command line. It is not required to change the defaults unless that is absolute. The latest version of Grsync is installed now.Īdd your source and destination directories and run the backup.
Once installed, you can access Grsync from both your dashboard and CLI. Run the following command to install Grsync on Debian: sudo apt install grsync Do not try to install Grsync from PPAs as it will result in a system break.
All instructions and commands only apply to Debian. In this guide, We are going to learn how to install Grsync. It has several advantages over plain CLI-based software. Grsync is a graphical alternative to command-line-based Rsync.