Commit graph

85 commits

Author SHA1 Message Date
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
f9205f6e20 Allow setting log file directory 2017-05-02 20:14:36 +00: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
756b03bc32 Fixes issue #59 - script didn't work when source set to '/' 2016-11-29 12:29:07 +00:00
Davide Liessi
4cf2f2e081 fix date parsing on FreeBSD 2016-10-05 22:51:08 +02:00
Laurent Cozic
41427964ac Removed --archive flag and replaced it with the actual options, to make it clear what's happening. Also removed --verbose 2016-10-01 13:48:30 +01:00
Laurent Cozic
56a3a89866 Fixed issue with paths that contain spaces 2016-10-01 13:44:56 +01:00
Laurent Cozic
b9d359f797 Update rsync_tmbackup.sh
Allow getting and setting rsync options
2016-09-10 11:32:11 +01:00
Laurent Cozic
5a0fd5f3b1 Added SSH and Time Machine style backup example 2016-08-16 09:36:57 +01:00
Laurent Cozic
6157826651 Added support for setting SSH port 2016-08-15 12:01:37 +01:00
Laurent Cozic
9c5046e518 Added support for command line flags 2016-08-15 11:29:15 +01:00
Laurent Cozic
4fcbb0eab5 Formatting - not sure when that was changed to spaces 2016-08-12 17:29:09 +01:00
Laurent Cozic
b905b61a86 Not supported on certain versions of BusyBox - fixes issue #52 2016-05-05 14:10:06 +02:00
Brandon Dusseau
e8e0806823 Fixes issue with incorrectly detecting if backup is already running if interrupted 2016-03-19 00:27:51 -04:00
Bhuvanesh Kumar
a8504cbf4c modified to not assume destination if not provided 2016-02-03 21:38:17 +05:30
Bhuvanesh Kumar
5e4250d5bc Merge remote-tracking branch 'upstream/master'
Conflicts:
	rsync_tmbackup.sh
2015-12-08 00:25:50 +05:30
Laurent Cozic
2f2ac64aa3 'Fix' active backup task issue in Cygwin, added warning, and TODO solution 2015-11-08 12:09:28 +01:00
Fatih Üstündağ
e07f7e7123 Tested at Cygwin 2.2.1 at Windows Server 2012 R2 64bit 2015-09-26 01:15:35 +03:00
Elliot Jordan
742412fb3e Cleaned up whitespace (no changes to code). 2015-01-20 13:42:53 -08:00
Elliot Jordan
3202ca5da0 Consistent formatting for conditionals. 2015-01-20 13:41:52 -08:00
Elliot Jordan
6c4607d853 Removed unnecessary $ from arithmetics. 2015-01-20 13:36:48 -08:00
Bhuvanesh Kumar
9bc6be475a if destination is not specified assume current folder 2014-01-30 23:13:30 +05:30
Bhuvanesh Kumar
18258ad2a9 display usage info if required args not passed 2014-01-29 00:18:38 +05:30
Erik Jansson
12930a24eb Fix expiring old backups
This got (accidentally?) turned off in a previous commit.
2014-01-14 13:55:43 +01:00
Laurent Cozic
27a98fb54b Added TODO to README.md 2014-01-12 03:09:12 +08:00
Fatih Üstündağ
f3a265b07e SSH support added.
Backups can be created at remote server via ssh. Destination folder
should be given like “root@192.168.0.1:/bakcups”

NOTE: Assumed public/private key config is ok.
2014-01-03 14:40:53 +02:00
Laurent Cozic
52376db2b5 OS X compatibility and splitted rsync errors and warnings
- Fixed bug on OS X since "--" is not supported by sed.
- Changed sed to grep for consistency with rest of the code.
- Splitted handling of rsync errors/warnings - for errors we quit with
  an error code, for warnings we print a message but complete the backup
  process.
2013-12-21 18:33:01 +08:00
bhuvi8
c8ae234904 Deleting log file when no error is found and proper handling of rsync errors
through log file rather than through exit code
2013-12-18 00:01:56 +05:30
bhuvi8
25ad8f07a6 Added rsync error handling and modified WARN and ERROR functions to print to
stderr
2013-12-17 02:15:43 +05:30
Robert Bruce Park
808767dc66 Merge @laurent22/master. 2013-11-26 22:05:46 -08:00
Laurent Cozic
c854cd17c6 Restoring $(basename -- "$DEST")
In case the destination is later on generated in a different way,
also makes the code and intention more explicit.
2013-11-27 12:36:54 +08:00
Robert Bruce Park
bff263ab57 Simplify logfile parsing and drop unreachable codepath. 2013-11-26 13:46:26 -08:00
Robert Bruce Park
d73b3ffe43 Yet more quotes! 2013-11-26 13:13:58 -08:00
Robert Bruce Park
b16c3cf4ce Even more quotes. 2013-11-26 13:11:53 -08:00
Robert Bruce Park
e7fc37076c Rebase on @laurent22/master. 2013-11-26 13:11:00 -08:00
Robert Bruce Park
4720f404af Extra quotes everywhere! 2013-11-26 13:08:52 -08:00
Robert Bruce Park
2f0092ac9f Use -n and -z for easier string emptiness checks. 2013-11-26 13:04:30 -08:00
Robert Bruce Park
40e5ce4721 Use bash : noop for efficiency. 2013-11-26 13:02:29 -08:00
Robert Bruce Park
e5f939222e Determine $APPNAME programmatically. 2013-11-26 12:59:00 -08:00
Robert Bruce Park
0db8b3a913 Define trivial functions on one line only. 2013-11-26 12:55:17 -08:00
Robert Bruce Park
c3f15c7834 Simplify symlink creation. 2013-11-26 12:48:49 -08:00
Robert Bruce Park
4da7172099 Redundant. 2013-11-26 12:46:15 -08:00
Robert Bruce Park
45875055a4 Simpler absolute paths. 2013-11-26 12:45:12 -08:00
Robert Bruce Park
16fd955e6c Drop some single-use variables. 2013-11-26 12:43:58 -08:00
Robert Bruce Park
08d090f19c Sort fn_find_backups newest first. 2013-11-26 12:41:42 -08:00
Laurent Cozic
2e413d82d7 Merge branch 'master' of https://github.com/laurent22/rsync-time-backup 2013-11-26 03:44:06 +08:00
Eric Fournie
928b32f83e Force deleting INPROGRESS_FILE (avoids waiting for user input if rm is aliased to rm -i) 2013-11-25 14:47:18 +00:00
Laurent Cozic
b8fb75bbc0 Removed dangerous and unneeded delete flags.
Since there's normally nothing in the destination directory, the
delete flags are not really needed.
2013-11-24 17:23:00 +08:00