Commit Graph

22 Commits

Author SHA1 Message Date
8dad65dd90 sync.sh: different exit status, better locking, etc...
* -l option to keep log file
* lock files are now in /tmp
* no sendmail will give better information about issue
* checks for SRC and DST dirs before backup
2022-05-13 20:09:52 +02:00
6df830554d sync.sh: refactoring, add -m option 2022-05-11 15:29:24 +02:00
28780ef13c sync.sh: add some code in functions 2022-05-10 20:38:34 +02:00
9ea7e38759 sync.sh: cosmetic changes after first tests... 2022-05-10 14:14:01 +02:00
fec8a1e844 sync.sh: phase 1 of full rewrite (functions, etc...)
Important changes:
- RSYNCOPTS must be an array, not a string.
- log() is now using printf-style:
  Unchanged:
  - log "a b c"
  Incorrect (old syntax):
  - log a b c
  Correct (new syntax):
  - log "%s %s %s" "a" "b "c"
  - log "%s" "a b c"
2022-05-09 17:23:53 +02:00
6dbcf82f0b sync.sh: -a option parameters do not use comma as separator 2022-04-30 14:30:19 +02:00
a08903e55e sync.sh: RSYNCOPTS is now an array 2022-04-27 21:53:58 +02:00
92d1be28af sync.sh: replace -dwmy with -ad,w,m,y (INVOCATION CHANGE !) 2022-04-27 20:45:43 +02:00
6cea21099d BUG fix: type -P instead of type -p to check command is in PATH 2022-04-26 16:10:09 +02:00
f623bfe80c use gzip by default if available. Fix sendmail To: envelope 2022-04-25 14:52:00 +02:00
159e70d654 sync.sh: use gzip by default if available. Fix sendmail To: envelope 2022-04-25 14:04:41 +02:00
5a93fe6b47 sync.sh: Minor changes 2022-04-24 21:07:18 +02:00
3699e9f9eb sync.sh: remove uuidgen dependancy (static MIME string) 2022-04-23 13:37:55 +02:00
1b818570c2 sync.sh: Use sendmail to send email. 2022-04-22 14:04:47 +02:00
1f6a506af4 sync.sh: new option to gzip mail attachment 2022-04-22 10:39:17 +02:00
38dd2d87ed switch from uuencode to base64 2022-04-22 10:05:43 +02:00
bda790702f sync.sh: minor logging changes 2022-04-21 20:34:37 +02:00
93f7075275 Shellcheck compliance 2022-04-21 16:39:13 +02:00
546d4afeaf typo 2022-04-21 16:23:09 +02:00
f8dc759b6a sync.sh: mail output is sent as attachment 2022-04-21 16:20:25 +02:00
22185486b6 Change license to GPL 3.0 or later 2022-03-08 12:29:55 +01:00
4d32e9ee7c sync.sh 2021-02-22 18:11:42 +01:00