![ubuntu grsync schedule ubuntu grsync schedule](https://i.ytimg.com/vi/p_dSz64TCgo/maxresdefault.jpg)
Additionally, if the backup destination directory is full, the oldest backups are deleted until enough space is available. by default within the first 24h) it is implied that all backup sets are kept. After 365 days, keep one backup every 30 days ( 365:30).īefore the first interval (i.e.After 30 days, keep one backup every 7 days ( 30:7).After 1 day, keep one backup every 1 day ( 1:1).The default strategy is 1:1 30:7 365:30, which means:
UBUNTU GRSYNC SCHEDULE SERIES
This strategy is a series of time intervals with each item being defined as x:y, which means "after x days, keep one backup every y days". "latest" symlink that points to the latest successful backup.Ġ */1 * * * if grep -qs /mnt/backup /proc/mounts then rsync_tmbackup.sh /home /mnt/backup fiīackup sets are automatically deleted following a simple expiration strategy defined with the -strategy flag. For all previous backups, the most recent of each month is kept. Within one month, the most recent backup for each day is kept. Resume feature - if a backup has failed or was interrupted, the tool will resume from there on the next backup.Įxclude file - support for pattern-based exclusion via the -exclude-from rsync parameter.Īutomatically purge old backups - within 24 hours, all backups are kept.
![ubuntu grsync schedule ubuntu grsync schedule](https://s3.amazonaws.com/media.the-next-tech.com/wp-content/uploads/2020/06/19155243/2020-06-21_20-46-768x328.png)
Safety check - the backup will only happen if the destination has explicitly been marked as a backup destination. Files can be copied and restored directly, without any intermediate tool.īackup to/from remote destinations over SSH.įiles that haven't changed from one backup to the next are hard-linked to the previous backup so take very little extra space. Instead an errorĮach backup is on its own folder named after the current timestamp. no-auto-expire Disable automatically deleting backups when out of space. After 30 days, keep one backup every 7 days.Īfter 365 days keep one backup every 30 days.
![ubuntu grsync schedule ubuntu grsync schedule](https://news.softpedia.com/images/extra/LINUX/large/hardyheronalphaone-large_003.png)
Default: "1:1 30:7 365:30" means after oneĭay, keep one backup per day. Not be managed by the script - in particular they will not be If this flag is set, generated files will rsync-append-flags Append the rsync flags that are going to be used for backup. rsync-set-flags Set the rsync flags that are going to be used for backup. If using remoteĭrive over SSH, -compress will be added. rsync-get-flags Display the default rsync flags that are used for backup. i, -id_rsa Specify the private ssh key to use.