Commit graph

190 commits

Author SHA1 Message Date
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
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
Laurent Cozic
f9205f6e20 Allow setting log file directory 2017-05-02 20:14:36 +00:00
Laurent Cozic
041ffb459b Merge pull request #74 from robocad/patch-1
Update README.md
2017-04-27 23:21:45 +01:00
robocad
d612e9980e Update README.md
typo
2017-04-27 22:07:37 +02:00
Laurent Cozic
b2e5582ade Update README.md
Fixed tabs
2017-04-25 16:10:48 +01:00
Laurent Cozic
1d8592c39a Update README.md
Fixed readme file
2017-04-25 16:09:30 +01:00
Laurent Cozic
cffc330ff5 Update README.md
Moved `flock` information under Example and shortened it
2017-04-25 16:07:47 +01:00
Laurent Cozic
4b15ea8f75 Merge pull request #72 from jpartain89/master
Changed `flock` line
2017-04-25 16:05:01 +01:00
jpartain89
9367b9b80b Changed flock line
Changed `sh` to `bash` when calling `rsync_tmbackup.sh`. A bunch of errors pop up when using `sh`. 

trap: SIGINT: bad trap
rsync_tmbackup.sh: 173: rsync_tmbackup.sh: [[: not found
rsync_tmbackup.sh: 173: rsync_tmbackup.sh: -z: not found
rsync_tmbackup.sh: 71: rsync_tmbackup.sh: [[: not found
rsync_tmbackup.sh: 194: rsync_tmbackup.sh: [[: not found
rsync_tmbackup.sh: 194: rsync_tmbackup.sh: [[: not found
rsync_tmbackup.sh: 194: rsync_tmbackup.sh: [[: not found
2017-04-25 09:24:49 -05:00
Laurent Cozic
674d5a1878 Merge pull request #71 from joekerna/fn_rm
Improve speed of expiring backups
2017-04-25 12:42:13 +01:00
joekerna
dff1ea00e1 rsync doesn't work with files
Use rsync only to delete directories and stick to rm for files.
2017-04-19 10:01:30 +02:00
joekerna
78d7121586 Improve backup removal (Issue #55)
Implemented quicker removal of old backups according to issue #55
2017-04-18 14:48:40 +02:00
Laurent Cozic
75ff2a6aca Merge pull request #69 from mackdata/master
Update README.md
2017-04-06 14:36:43 +01:00
mackdata
1964baa4a2 Update README.md 2017-04-06 15:28:45 +02:00
mackdata
c44911155e Update README.md 2017-04-06 15:23:28 +02:00
mackdata
103f85cd65 Update README.md
Added section ## Lockfile
2017-04-06 13:33:34 +02:00