Commit Graph

136 Commits

Author SHA1 Message Date
886d634799 sync.sh/sync-view.sh: Add .syncrc in backup dir as defaut config file 2022-07-29 22:48:46 +02:00
1079076fbe typo on RESOLVETARGET test after changing to empty=do not resolve 2022-07-22 19:05:00 +02:00
db48925066 add file type, option -a to find file from different machine. 2022-07-22 11:53:11 +02:00
d7a06202f9 typo in man EXAMPLES section 2022-07-13 15:48:24 +02:00
0b6563fe23 sync-view.sh: fix TARGETDIR variable name, missing '/' when ROOTDIR=/ 2022-07-13 15:29:53 +02:00
d8dde368d2 sync-view.sh: first version 2022-07-13 14:29:21 +02:00
c9387f3231 fix .gitignore 2022-07-13 14:27:55 +02:00
da6f2bacea man change 2022-07-11 17:05:13 +02:00
63a289b814 sync-conf-example.sh: dump also mysql/mariadb users and permissions 2022-07-02 10:43:42 +02:00
449929d7a7 add LC_ALL to avoid localized messages 2022-06-24 14:12:32 +02:00
228eba1133 suppression log 2022-06-24 02:06:14 +02:00
05e7ecb5e1 replace all "function foo" with "foo()" 2022-06-23 19:20:47 +02:00
54e9308268 Use only labels for partition matching 2022-06-23 19:13:07 +02:00
5ef543f760 change shebang line 2022-06-23 16:23:38 +02:00
7a8b6cdc73 dup-live-disk: RSYNCOPTS is now array, ignore exit 24 for rsync 2022-06-20 13:08:29 +02:00
f4f6bd06d1 C tools: move includes to subdir, Makefile 2022-06-06 16:45:07 +02:00
9d71467182 rwonce.h: __error__ attribute fix 2022-06-01 17:55:48 +02:00
d6eccb2caa bits.h: add 32 bits macros 2022-06-01 17:54:01 +02:00
97aea8ddf2 sync.sh: some shellcheck fixes 2022-06-01 17:46:57 +02:00
fab41ccc2e debug.h: typos 2022-06-01 17:46:17 +02:00
124192efbf bufix in example (wrong quotes) 2022-05-29 19:07:22 +02:00
bda4253cc1 sync.sh: More errors checks 2022-05-29 18:14:47 +02:00
71ea8e5881 sync.sh: remove FILTER variable 2022-05-27 21:54:51 +02:00
f55e565aac dup-live-disk.sh: cosmetic changes 2022-05-27 21:54:28 +02:00
607c9495d7 sync.sh: Touch destination dir after copy 2022-05-15 09:53:36 +02:00
94b48bbfef sync.sh: update options in man section 2022-05-14 10:24:41 +02:00
909f4bb2ca sync.sh: Fix wrong log file name, add its name on top of email 2022-05-14 10:12:30 +02:00
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
f8c150f2a3 dup-live-disk: fix mismatched quotes help text 2022-05-08 13:16:57 +02:00
b040a772e7 dup-live-disk: Typo in 'man' text which gives an error at EOF 2022-05-07 20:23:21 +02:00
3387c26a22 dup-live-disk: typo when asking to install grub 2022-05-07 20:12:59 +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