
- Grsync chron how to#
- Grsync chron archive#
You can also specify different destination directory like below: $ rsync -auv ostechnix.txt Downloads/ostechnix-bak.txt The above command saves the backup file ostechnix-bak.txt file in the current directory. -u - Skip files that are newer on the receiving end.
Grsync chron archive#
-a - Archive mode mode (maintaining file properties and sym-links). $ rsync src_file dest_fileĮxamples: $ rsync -auv ostechnix.txt ostechnix-bak.txt Here is a simple Rsync command to backup or copy file from one location to another in the local system itself. The general syntax of Rsync to copy data from one location to another is: rsync SRC… Always use external drive, secondary drive, network share and cloud storage etc.įor demonstration purpose, I will be using a 1 TB external hard disk throughout this guide. If you are serious about Backup, don't put the backup in the same drive itself. If you have two separate drives in your machine, you can use any one of the drives to backup your data considering both will not fail at once.
A simple and cheap option is to use an external hard disk. You can backup your data to an external hard disk, a Cloud storage, or a Network-attached Storage (NAS). Choosing storage mediumĪs the first step, decide where you are going to backup your data. This guide focus on selective backup files and directories using Rsync in Linux.
Grsync chron how to#
We already have covered how to backup entire Linux system using Rsync. For example, you can copy the important config files or the whole $HOME directory, and exclude everything else.
The second type is backup or copy the selective files and directories only. You can use this copy to bring the machine to its original state in case of any system failure. In the first type, we copy the entire Linux file system to an external device or a network share.
Br backup individual files and directories. Backup files and directories using Rsync in Linux Rsync (Remote Sync) is considered to be one of the most widely used and trusted backup tool. There are plenty of Backup tools exists for Linux and Unix platforms. As a newbie, I did that mistake once and learned the importance of backup. Just ask any Linux users out there, they will share the pain of not backing up their system/data.