rsync, is it acceptable to modify some files in a file system, while backing up the file system?
If yes, is it necessary to take a snapshot before backup, and do an incremental backup after finishing modifying the files to keep the backup and the source the same?
Which is better:
- wait and not change any files during a full backup, or
- modify some files during a full backup and then do a incremental backup after modifying the files?
I want to change some files of a large file system while backing it up, because I heard that incremental backup will be much faster than a full backup. Is that correct? So I can wait shorter for backing up?
- How do we do snapshot with
Some clarification of the question may be required. Rsync will make a copy of the source directory. If you perform an rsync and then alter the destination those changes would be overwritten during the next rsync.
If you're only looking to modify the source I would recommend taking a look at incremental backups with rsync. I use a script based on this method to perform incremental backups of my system. What's nice about this method is that you don't need to reconstruct your files (merging incremental and full) when you restore files.
Since this method utilizes hard links I would not recommend modifying the destination files.