Commit graph

205 commits

Author SHA1 Message Date
Laurent Cozic
9eba8e81c4
Merge pull request #114 from neddy70/no-auto-expire
Add option to disable automatic purging of backups
2018-03-18 11:55:50 +00:00
Neddy70
9f9a4945e2 Merge branch 'expiration-strategy' into no-auto-expire
Merge upstream fixes
2018-03-18 21:54:36 +11:00
Laurent Cozic
1a731243f7 Merge branch 'expiration-strategy' of github.com:laurent22/rsync-time-backup into expiration-strategy 2018-03-18 10:07:31 +00:00
Neddy70
b0654c96e0 Added option to disable automatically purging old backups when out of space. 2018-03-17 11:41:14 +11:00
Laurent Cozic
7f1431c13a Fixed date parsing issue 2018-03-05 19:29:14 +00:00
Laurent Cozic
4af7610dd1
Update README.md 2018-02-26 10:57:58 +00:00
Laurent Cozic
c5af8528bb Merge branch 'master' into expiration-strategy 2018-02-24 12:26:46 +00:00
Laurent Cozic
051733df1e Fixed variable names 2018-02-23 18:19:09 +00:00
Laurent Cozic
7383c50134 Documented backup expiration strategy and added test file 2018-02-23 18:16:37 +00:00
Laurent Cozic
a77169818e Changed order of expiration strategy items 2018-02-23 17:55:12 +00:00
Laurent Cozic
c211541848
Merge pull request #110 from Loki3000/master
Fix work with symlink as a destination
2018-02-23 09:53:45 +00:00
Loki3000
80c4d26573
Fix work with symlink as a destination
https://github.com/laurent22/rsync-time-backup/issues/92
2018-02-23 12:25:36 +03:00
Laurent Cozic
5aac62cfc0
Merge pull request #109 from NathanFrench/master
Fix to assure only one instance is running.
2018-02-12 12:38:49 +01:00
Nathan French
bfa1fd092e
Fix to assure only one instance is running.
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.
2018-01-19 13:42:54 -05:00
Laurent Cozic
c313e0a322
Merge pull request #102 from mmolinac/tigercompat
Replaced operator '=~' with 'grep -Eq' and using a perl one-liner to …
2017-12-09 11:07:56 +00:00
Manuel Molina Cuberos
19ecacad25 Newer versions of bash reports OSTYPE differently. This copes with the case. 2017-12-09 11:28:22 +01:00
Manuel Molina Cuberos
31a7bac4b4 Replaced operator '=~' with 'grep -Eq' and using a perl one-liner to avoid 'date -j'. Both are not compatible with Mac OS X Tiger. 2017-12-08 22:20:53 +01:00
Laurent Cozic
b57cf4b732 Removed accidentally committed test files 2017-11-26 17:00:02 +00:00
Laurent Cozic
2d0cb29bcb Allow specifying the expiration strategy tokens in any order (less error prone) 2017-11-26 16:59:29 +00:00
Laurent Cozic
c608793b60 Moved expiration logic to own function and implemented handling of strategy tokens 2017-11-26 16:48:03 +00:00
Matthias Kern
e988703100 Added --strategy option description 2017-11-24 20:20:58 +01:00
Matthias Kern
c5c1307062 Introduces function that parses the --strategy option into a two dimensional array 2017-11-24 20:16:22 +01:00
Laurent Cozic
d13af58252
Merge pull request #96 from thomas-mc-work/patch-1
Also detect single dashes as error
2017-11-17 12:17:22 +01:00
Thomas McWork
260715a9b9
Also detect single dashes as error
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-11-17 10:20:50 +01:00
Laurent Cozic
fd4a29e848 Update README.md
It would make sense to have the list of features first
2017-10-05 21:18:14 +01:00
Laurent Cozic
bb909c332b Update README.md
Added "Extensions" section
2017-10-05 21:13:17 +01:00
Laurent Cozic
74f418d561 Update README.md
Minor tweaks
2017-09-26 15:09:55 +01:00
Laurent Cozic
4393a86bd0 Merge pull request #90 from markalston/master
Added ability to pull files from remote ssh server
2017-09-26 15:08:36 +01:00
markalston
732ad83ed8 Update Readme.md to reflect remote pull method 2017-09-26 08:03:48 -06:00
Laurent Cozic
d5b26f76e1 Merge pull request #91 from wietsefranssen/fix/zsh
fixed check for previous backups in zsh
2017-09-23 19:07:46 +01:00
Wietse Franssen
dfeafb3d9f fixed check for previous backups in zsh 2017-09-22 15:23:46 +02:00
Laurent Cozic
1ed730e614 Update README.md
Added "How to restore" section
2017-09-21 11:55:08 +01:00
markalston
5a8ed7b008 Update rsync_tmbackup.sh 2017-09-20 10:54:52 -06:00
markalston
13357c1cc9 fixes for ssh source folder / 2017-09-20 10:40:34 -06:00
markalston
6b05dca48a fixed missing SSH_SRC_FOLDER_PREFIXs 2017-09-20 09:36:36 -06:00
markalston
88dce0e3f9 Updated rsync_tmbackup.sh to allow remote source
Changes to allow rsync_tmbackup.sh to pull files from remote server.
2017-09-20 09:22:18 -06:00
Laurent Cozic
9a5afa66f4 Merge pull request #76 from SimonHeimberg/patch-1
do not search for directories recurisve
2017-06-08 14:02:44 +01:00
Simon Heimberg
db316ed18e correct argument for maxdept parameter 2017-06-08 14:51:59 +02:00
Laurent Cozic
8ef83da5d9 Reverted to use rm for directory deletion 2017-06-04 11:25:52 +01:00
Laurent Cozic
b85bf9a6e5 Updated README and mentioned built-in lock 2017-06-03 15:39:19 +01:00
Laurent Cozic
b41589ec77 Only use optimised deletion method for large directories 2017-06-03 15:31:48 +01:00
Laurent Cozic
8f8fbeb130 Merge pull request #80 from dovecode/cygwin-conflict-support
Add cygwin support for checking if the previous backup is still running
2017-06-03 14:54:10 +01:00
root
dbc2f536fa Add support for checking if the previous backup is still running under cygwin 2017-05-18 20:04:31 -04:00
Laurent Cozic
d152279d30 Still delete inprogress file in case of error or warning 2017-05-08 20:14:15 +00:00
SimonHeimberg
6364fe1ca0 correct position for maxdept parameter
as suggested by the output of find
2017-05-04 14:55:32 +02:00
SimonHeimberg
41f9bd1c8c do not search for directories recurisve
This gives a big speed improvement when the dest dir contains other directories containting many subdirectories.
2017-05-04 14:49:30 +02:00
Laurent Cozic
15329de603 Changed order of error/warning handling to avoid redundant error messages.
Displayed grep command that can be copied and pasted to investigate backup issues.
2017-05-02 21:14:22 +00:00
Laurent Cozic
77d8c56000 Added --stats --human-readable to default rsync flags, and done minor clean up and refactoring 2017-05-02 21:58:01 +00:00
Laurent Cozic
1ffb922e33 Update README.md
Fixed headers
2017-05-02 12:20:50 +01:00
Laurent Cozic
d65cb504cc Documented expiration logic in README 2017-05-02 20:36:10 +00:00