Most of us has experienced loss of valuable files and data at some point in time when a local storage system fails. We know the importance of backing up our files and data but not many actually do have or implement a proper backup solution.
Some good backup strategies are to create a consistent and automatic backup, and to store the backup in a remote location.
This could be achieved in
Linux by creating a system to automatically back up to a remote
SSH server using
SSHlogin from your local machine to the remote backup server.
[email protected]:$ mkdir -p ~/backup_folder/folder_01
SSHuser has full access to the directory on the remote backup server.
[email protected]:$ chmod -R 777 ~/backup_folder/folder_01
[email protected]:$ rsync -av --delete /path/to/folder_01/ [email protected]:backup_folder/folder_01
[email protected]:$ ls -l ~/backup_folder/folder_01
crontabeditor on the local machine.
[email protected]:$ crontab -e
Comment anonymously. Login not required.