summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-12-06Merge pull request #23 from robru/simplify-logfilesLaurent
Simplify logfile parsing and drop unreachable codepath.
2013-11-26Merge @laurent22/master.Robert Bruce Park
2013-11-27Restoring `$(basename -- "$DEST")`Laurent Cozic
In case the destination is later on generated in a different way, also makes the code and intention more explicit.
2013-11-26Simplify logfile parsing and drop unreachable codepath.Robert Bruce Park
2013-11-26Yet more quotes!Robert Bruce Park
2013-11-26Even more quotes.Robert Bruce Park
2013-11-26Rebase on @laurent22/master.Robert Bruce Park
2013-11-26Extra quotes everywhere!Robert Bruce Park
2013-11-26Use -n and -z for easier string emptiness checks.Robert Bruce Park
2013-11-26Use bash : noop for efficiency.Robert Bruce Park
2013-11-26Determine $APPNAME programmatically.Robert Bruce Park
2013-11-26Define trivial functions on one line only.Robert Bruce Park
2013-11-26Simplify symlink creation.Robert Bruce Park
2013-11-26Redundant.Robert Bruce Park
2013-11-26Simpler absolute paths.Robert Bruce Park
2013-11-26Drop some single-use variables.Robert Bruce Park
2013-11-26Sort fn_find_backups newest first.Robert Bruce Park
2013-11-26Merge branch 'master' of https://github.com/laurent22/rsync-time-backupLaurent Cozic
2013-11-26Update README.mdLaurent
Mentioned level of testing.
2013-11-25Merge pull request #21 from efournie/efournie-masterLaurent
Force deleting INPROGRESS_FILE Avoids waiting for user input if rm is aliased to rm -i
2013-11-25Force deleting INPROGRESS_FILE (avoids waiting for user input if rm is ↵Eric Fournie
aliased to rm -i)
2013-11-24Removed dangerous and unneeded delete flags.Laurent Cozic
Since there's normally nothing in the destination directory, the delete flags are not really needed.
2013-11-23Fix spaces in filenames.Robert Bruce Park
2013-11-23Add a simple script for running rsync_tmbackup.sh from cron.Robert Bruce Park
2013-11-16Removed old backup deletion prompt, and formatting tweaks.Laurent Cozic
- Removed old backup deletion prompt as it's not really needed. - Made all variables uppercase for consistency. - Used double square brackets in `if` statements.
2013-11-16Merge branch 'master' of https://github.com/laurent22/rsync-time-backupLaurent Cozic
2013-11-16Merge pull request #14 from robru/masterLaurent
Time Machine style backup pruning.
2013-11-15Merge master.Robert Bruce Park
2013-11-15Stop creating "latest" symlink (implemented in a different branch).Robert Bruce Park
This reverts commit 28735b181586606e107a471163e8c6b109016446.
2013-11-15Create "latest" symlink pointing at the most recent completed backup.Robert Bruce Park
2013-11-15More elegant cross-platform date logic.Robert Bruce Park
2013-11-15More robust date handling.Robert Bruce Park
Previously the date handling expiry logic had a bug where if you had backups that were a year apart to the day, it wouldn't notice the difference in year and only notice that the month was the same, and expire the older one (eg, if you had a backup on 2012-04-01 and another on 2013-04-01, it'd delete the one from 2012. This commit makes it compare the full date string instead of just the month, so that it more robustly keeps older backups.
2013-11-15Add MacOSX compatibility.Robert Bruce Park
2013-11-15Updated list of features in READMELaurent Cozic
2013-11-15Fixed latest backup symlink issuesLaurent Cozic
Code was in the wrong place (link being added when the backup failed only). Also made the symlink relative to the current folder so that the drive can be mounted with a different path.
2013-11-15Merge pull request #15 from mumrah/masterLaurent
Add a "latest" symlink when backup is successful
2013-11-14Whitespace fix, oops.Robert Bruce Park
2013-11-14Correctly handle most recent backup if it's older than 24hs.Robert Bruce Park
Code was assuming that you'd run backups hourly, eg, so you'd have many backups within the last 24 hours. Code assumed that by the time you found a backup more than 24h old, you'd already have a value for $prev set. In the event that your most recent backup is more than 24 hours old, $prev would not be set and bash would get an error "unary operator expected" when it tried to compare the day of the newest backup to the empty $prev value. I fix this by setting a default value for $prev, one that cannot be mistaken for an existing backup because it does not represent a valid date. This ensures that the most recent backup is correctly preserved regardless of it's age.
2013-11-14Simplify fn_is_backup_destination implementation.Robert Bruce Park
2013-11-14Make fn_expire_backup more robust.Robert Bruce Park
2013-11-13FixedDavid Arthur
Brain fart
2013-11-13Drop BACKUP_FOLDER_PATTERN since it's now only used in one place.Robert Bruce Park
2013-11-13Take the training wheels off ;-)Robert Bruce Park
2013-11-13Add a "latest" symlink when backup is successfulDavid Arthur
2013-11-13Rearrange function definitions.Robert Bruce Park
2013-11-13Implement fn_expire_backups to reduce code duplication.Robert Bruce Park
2013-11-13Implement fn_find_backups to reduce code duplication.Robert Bruce Park
2013-11-13Rebase on master.Robert Bruce Park
2013-11-13More robust path handling.Robert Bruce Park
2013-11-13Update README.mdLaurent
Now done: "Check if there's enough space in the destination before doing the backup. Also automatically delete old backups."