That means the timestamps will now differ, so the next rsync will think an update is needed, and will send it again! no-times will avoid copying the timestamp, but if a file is updated, the target file will have its modification time set to now. For example, git keeps changing the timestamps on your files, but when you run rsync you don't want to see these timestamps being transferred, you only want to see the files which have really changed. # This could happen if the source is a mounted SMB share, which is offline.In general, you should copy the timestamps, because this allows rsync to run more efficiently in future.īut there may be times when you really don't want to keep the timestamps in sync. # backup does not fail if source path returns "host is down". # backup does not fail if files vanished during transfer # create destination if it does not exist # notify if last backup is older than X days # notify if the backup was successful (1 = notify) # -exclude="Cache/*" # exclude dirs with the name "Cache" exclude="/*" # exclude dirs with the name "tmp" or "Tmp" or "TMP" exclude="/*" # exclude dirs with the name "temp" or "Temp" or "TEMP" itemize-changes # output a change-summary for all updates human-readable # output numbers in a human-readable format archive # same as -recursive -links -perms -times -group -owner -devices -specials # rsync options which are used while creating the full and incremental backup # keep multiple backups of one day for X days " :/mnt/user/isos" "/mnt/user/Backups/isos" "/mnt/cache/appdata" "/mnt/user/Backups/appdata" # - allow different timestamp formats for the destination path like YYYYMMDD, YYYY-MM-DD, etc # - allow changing settings through script parameters like "-d14 -m12 /src /dst" # - create differential backup if full backup of the same day exists (which would make clean ups much faster), how to solve restore? # - resume if source went offline during last backup # - skip container stop if container CPU load is higher than X # - docker container stop and start for SSH sources # - chunksync hardlinks for huge files (like images), rsync still misses -reflink # Description: Creates incremental backups and deletes outdated versions Check the settings to define your own paths. The following script creates incremental backups by using rsync.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |