summaryrefslogtreecommitdiff
path: root/rsync_tmbackup.sh
AgeCommit message (Collapse)Author
2025-07-13delete read only filesHEADmasterMike Vink
2025-05-27Log to destination (#280)gahowork
2023-12-17Update symlink and remove .inprogress only after success (#264)qinjunjerry
2023-12-17Fixed indentation and white spaceLaurent Cozic
2023-12-13fix: Quote `$0` and printed variable (#263)Edwin Kofler
2021-06-25mod `fn_parse_date`, mismatch version/syntax of `date` (#240)Benjamin
* mod fn_parse_date combine identical cases, rm oft-failing darwin, subproc syntax * repair my default spaces to not expand tabs
2021-02-28Update rsync_tmbackup.sh (#232)psmanek
Fix: Source path with spaces.
2019-11-05fix typo (#179)linleybao
2019-09-29File existence and file system type checks (#170)omer-musa-battal
Added error checking for nonexistent source file. Also added file system type checks for destination and source, rsync flags are updated accordingly.
2019-09-28Fix lock to support more than one backup script running (#163)kapitainsky
2019-09-25TabsLaurent Cozic
2019-09-25Fix edge case in backup expiration logic (#166)kapitainsky
* bugfix - fn_expire_backups function * add BACKUP_TO_KEEP parameter * correct PREVIOUS_DEST test * variables case correction for consistency
2019-09-06Removed comment from --rsync-get-flags optionLaurent Cozic
2019-08-16move rsync flag --compress to ssh section. It will be used only if de… (#159)zwotzie
* move rsync flag --compress to ssh section. It will be used only if destination is accessed via ssh * fix identation, use tabs only
2019-01-18Added rsync-append-flags method and method to specify id_rsa for ssh (#134)DeeeeLAN
* added rsync-append-flag method and method to specify id_rsa for ssh * fixed formatting * fixed formatting
2018-06-13Use NetBSD ps in place of pgrep to determine whether a backup is currently ↵William D. Jones
running.
2018-06-12Add NetBSD date parsing.William D. Jones
2018-03-18Merge branch 'expiration-strategy' into no-auto-expireNeddy70
Merge upstream fixes
2018-03-17Added option to disable automatically purging old backups when out of space.Neddy70
2018-03-05Fixed date parsing issueLaurent Cozic
2018-02-24Merge branch 'master' into expiration-strategyLaurent Cozic
2018-02-23Fixed variable namesLaurent Cozic
2018-02-23Changed order of expiration strategy itemsLaurent Cozic
2018-02-23Fix work with symlink as a destinationLoki3000
https://github.com/laurent22/rsync-time-backup/issues/92
2018-01-19Fix to assure only one instance is running.Nathan French
Since this script runs under /usr/bin/env, running 'pgrep $0' will fail due to it being a child of 'bash'. In order to fix this, pgrep must use the `-o` flag (oldest pid, or in this case, the leader), and `-f` which searches the full process name.
2017-12-09Newer versions of bash reports OSTYPE differently. This copes with the case.Manuel Molina Cuberos
2017-12-08Replaced operator '=~' with 'grep -Eq' and using a perl one-liner to avoid ↵Manuel Molina Cuberos
'date -j'. Both are not compatible with Mac OS X Tiger.
2017-11-26Allow specifying the expiration strategy tokens in any order (less error prone)Laurent Cozic
2017-11-26Moved expiration logic to own function and implemented handling of strategy ↵Laurent Cozic
tokens
2017-11-24Introduces function that parses the --strategy option into a two dimensional ↵Matthias Kern
array
2017-11-17Also detect single dashes as errorThomas McWork
This also recognizes single dashes as invalid input: rsync_tmbackup.sh - 1 2 3 Expected output: an error because it's unknown what the single `-` could mean Actual output: rsync_tmbackup: Safety check failed - the destination does not appear to be a backup folder or drive (marker file not found). rsync_tmbackup: If it is indeed a backup folder, you may add the marker file by running the following command: rsync_tmbackup: rsync_tmbackup: mkdir -p -- "1" ; touch "1/backup.marker" rsync_tmbackup:
2017-09-26Merge pull request #90 from markalston/masterLaurent Cozic
Added ability to pull files from remote ssh server
2017-09-22fixed check for previous backups in zshWietse Franssen
2017-09-20Update rsync_tmbackup.shmarkalston
2017-09-20fixes for ssh source folder /markalston
2017-09-20fixed missing SSH_SRC_FOLDER_PREFIXsmarkalston
2017-09-20Updated rsync_tmbackup.sh to allow remote sourcemarkalston
Changes to allow rsync_tmbackup.sh to pull files from remote server.
2017-06-08Merge pull request #76 from SimonHeimberg/patch-1Laurent Cozic
do not search for directories recurisve
2017-06-08correct argument for maxdept parameterSimon Heimberg
2017-06-04Reverted to use `rm` for directory deletionLaurent Cozic
2017-06-03Only use optimised deletion method for large directoriesLaurent Cozic
2017-05-18Add support for checking if the previous backup is still running under cygwinroot
2017-05-08Still delete inprogress file in case of error or warningLaurent Cozic
2017-05-04correct position for maxdept parameterSimonHeimberg
as suggested by the output of find
2017-05-04do not search for directories recurisveSimonHeimberg
This gives a big speed improvement when the dest dir contains other directories containting many subdirectories.
2017-05-02Changed order of error/warning handling to avoid redundant error messages.Laurent Cozic
Displayed grep command that can be copied and pasted to investigate backup issues.
2017-05-02Added --stats --human-readable to default rsync flags, and done minor clean ↵Laurent Cozic
up and refactoring
2017-05-02Allow setting log file directoryLaurent Cozic
2017-04-19rsync doesn't work with filesjoekerna
Use rsync only to delete directories and stick to rm for files.
2017-04-18Improve backup removal (Issue #55)joekerna
Implemented quicker removal of old backups according to issue #55