SOLVED: Re: include/exclude: I miss the point
Hi Michal, (hope this mail is short enough for the list, previous one bounced: too big) Read, re-read, read again both your mail and the rsync-documentation (again) and think I get it now. First, regarding your comments (not all): 1. you are right, the .kabc\-files were missing (did not check it properly). Now I have them (see my solution below) rest of your comments let me understand what I read in the manual. One remark: the Exclude .mybackup/backup*.log.* is not redundant, due to the Include .mybackup. The .mozilla/extensions was redundant. 2 Excluding the [A-Z] and [a-z] works when specifying this: hans/[A-Z]* etc. Now I have the following which works perfect for me (test -version): rsync command: rsync -n -v -axhhX --no-perms --omit-dir-times --stats\ --backup --backup-dir=`date +%Y-%m-%d`/updated --suffix=.`date +%H%M`\ --delete --delete-excluded\ --backup-dir-dels=`date +%Y-%m-%d`/deleted --suffix-dels=.`date +%H%M`\ --log-file=/home/hans/.mybackup/backup-test.log.`date +%Y%m%d`-`date +%H%M`\ --include-from=/home/hans/.mybackup/include.txt\ --exclude-from=/home/hans/.mybackup/exclude.txt\ /home/hans /mnt/backup/test/ I herewith attach both the include.txt and exclude .txt and the listing of backed-up files. Best regards, Hans Troost # # to get KAdressbook entries + distribution lists # .kde4/ .kde4/share/ .kde4/share/apps/ .kde4/share/apps/kabc/ .kde4/share/apps/kabc/distlists .kde4/share/apps/kabc/std.vcf # # to get firefox bookmarks # .mozilla/ .mozilla/firefox/ .mozilla/firefox/plp6wzjm.default/ .mozilla/firefox/plp6wzjm.default/bookmarkbackups/ .mozilla/firefox/plp6wzjm.default/bookmarkbackups/* # # to get the backup-scripts and associated files like this # .mybackup .* .mybackup/backup*.log.* .mozilla/* .mozilla/firefox/* .mozilla/firefox/plp6wzjm.default/* .kde4/* .kde4/share/* .kde4/share/apps/* .kde4/share/apps/kabc/* *.*~ Desktop Downloads Movies Music Pictures tmp Videos # # for testing purposes only will be commented out on real use # hans/[a-z]* # hans/[A-Z]* # hans/2*/mnt/backup/test: total 0 drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ./ drwxr-xr-x 6 hans hans 0 2010-09-11 21:08 ../ drwxr-xr-x 4 hans hans 0 2010-09-11 21:08 hans/ /mnt/backup/test/hans: total 0 drwxr-xr-x 4 hans hans 0 2010-09-11 21:08 ./ drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ../ drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 .kde4/ drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 .mozilla/ drwxr-xr-x 1 hans hans 0 2010-09-11 21:08 .mybackup/ /mnt/backup/test/hans/.kde4: total 0 drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ./ drwxr-xr-x 4 hans hans 0 2010-09-11 21:08 ../ drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 share/ /mnt/backup/test/hans/.kde4/share: total 0 drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ./ drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ../ drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 apps/ /mnt/backup/test/hans/.kde4/share/apps: total 0 drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ./ drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ../ drwxr-xr-x 1 hans hans 0 2010-09-11 21:08 kabc/ /mnt/backup/test/hans/.kde4/share/apps/kabc: total 28 drwxr-xr-x 1 hans hans 0 2010-09-11 21:08 ./ drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ../ -rwxr-xr-x 1 hans hans 202 2010-09-11 11:55 distlists* -rwxr-xr-x 1 hans hans 21968 2010-09-11 11:55 std.vcf* /mnt/backup/test/hans/.mozilla: total 0 drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ./ drwxr-xr-x 4 hans hans 0 2010-09-11 21:08 ../ drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 firefox/ /mnt/backup/test/hans/.mozilla/firefox: total 0 drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ./ drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ../ drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 plp6wzjm.default/ /mnt/backup/test/hans/.mozilla/firefox/plp6wzjm.default: total 0 drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ./ drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ../ drwxr-xr-x 1 hans hans 0 2010-09-11 21:08 bookmarkbackups/ /mnt/backup/test/hans/.mozilla/firefox/plp6wzjm.default/bookmarkbackups: total 216 drwxr-xr-x 1 hans hans 0 2010-09-11 21:08 ./ drwxr-xr-x 2 hans hans 0 2010-09-11 21:08 ../ -rwxr-xr-x 1 hans hans 33921 2010-09-05 19:16 bookmarks-2010-09-05.json* -rwxr-xr-x 1 hans hans 33921 2010-09-06 20:08 bookmarks-2010-09-06.json* -rwxr-xr-x 1 hans hans 34164 2010-09-07 21:25 bookmarks-2010-09-07.json* -rwxr-xr-x 1 hans hans 34164 2010-09-08 23:14 bookmarks-2010-09-08.json* -rwxr-xr-x 1 hans hans 34164 2010-09-10 14:30 bookmarks-2010-09-10.json* -rwxr-xr-x 1 hans hans 34164 2010-09-11 20:42 bookmarks-2010-09-11.json* /mnt/backup/test/hans/.mybackup: total 64 drwxr-xr-x 1 hans hans0 2010-09-11 21:08 ./ drwxr-xr-x 4 hans hans0 2010-09-11 21:08 ../ -rwxr-xr-x 1 hans hans 471 2010-09-10 20:44 backup-dry-run.sh* -rwxr-xr-x 1 hans hans 1305 2010-09-08 17:06 backup-old.sh* -rwxr-xr-x 1 hans hans 749 2010-09-10 19:43 backup.sh* -rwxr-xr-x 1 hans hans 457 2010-09-11 20:54 backup-test.sh* -rwxr-xr-x 1 hans hans 101 2010-09-10 20:48 exclude-old .txt* -rwxr-xr
include/exclude: I miss the point
Hi all, I thought I understand how include/exclude and their precedences work (I read the user guide about this), but I seem to miss something. I have 2 questions about this, separated by == Question 1: -- I want to exclude the hidden directories except some sub-dirs or files: .mybackup and its files) and the mozilla firefox bookmarks folder and its contents (.mozilla/firefox/plp6wzjm.default/bookmarkbackups/*) So my exclude-files contains: .* .mybackup/backup.log.* .mozilla/extensions *.*~ Desktop Downloads Movies Music Picturestmp Videos the include file contains: .kde4/share/apps/kabc/distlists .kde4/share/apps/kabc/std.vcf .mozilla/ .mozilla/firefox/ .mozilla/firefox/plp6wzjm.default/ .mozilla/firefox/plp6wzjm.default/bookmarkbackups/* .mybackup Result: 1. Success: with both the .mybackup and the 2 .kde4/share/apps/kabc-files 2. Success: indeed I have my bookmarks in the ../bookmarkbackups/ folder 3. Failure: I have all other files, sub-dirs and their content as well in .mozilla/firefox/plp6wzjm.default. 4. when adding .mozilla/firefox/plp6wzjm.default/Cache .mozilla/firefox/plp6wzjm.default/chrome .mozilla/firefox/plp6wzjm.default/extensions .mozilla/firefox/plp6wzjm.default/firebug .mozilla/firefox/plp6wzjm.default/OfflineCache to the exclude file this folders are not in, but the normal .mozilla/firefox/plp6wzjm.default/ files are. Question: it seems that I miss the point how to do this. can you please give a hint about what I ḿ doing wrong? rsync command )some date-time variable for files, but that is working): rsync -axhhX --no-perms --omit-dir-times\ --backup --backup-dir=$NiceDate/updated --suffix=.$Now\ --delete --delete-excluded\ --backup-dir-dels=$NiceDate/deleted --suffix-dels=.`date +%H%M`\ --log-file=/home/hans/.mybackup/backup.log.$RawDate-$Now\ --include-from=/home/hans/.mybackup/include.txt\ --exclude-from=/home/hans/.mybackup/exclude.txt\ /home/hans /mnt/backup === 2nd, similar question: to play around with this stuff I wanted to test with the hidden files only (.*), so I tried to add all non-hidden directories and normal files to this exclude-test.txt, but did not get it working (it worked too much): exclude-test.txt .* .mybackup/backup.log.* [a-z]* [A-Z]* while my include-test is: .kde4/share/apps/kabc/distlists .kde4/share/apps/kabc/std.vcf .mozilla/ .mozilla/firefox/ .mozilla/firefox/plp6wzjm.default/ .mozilla/firefox/plp6wzjm.default/bookmarkbackups/* .mybackup In this case I don't get any files backed up (dry-run, so checked in log-file only). same rsync command (other log-file and destination) === Thanks for any help, regards, Hans Troost -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Minimize log file: get rid of .d...p..... send
Thanks Matt, Tested again a bit and indeed: permissions on source and destination are different: [h...@localhost rsync-test]$ cd ~/rsync-files/rsync-test/ [h...@localhost rsync-test]$ ls -l total 24 drwxrwxr-x 2 hans hans 4096 2010-09-02 18:24 2bchanged/ drwxrwxr-x 2 hans hans 4096 2010-09-03 16:45 New Folder/ drwxrwxr-x 2 hans hans 4096 2010-09-03 16:42 New Folder (2)/ [h...@localhost rsync-test]$ cd /mnt/backup//rsync-test/ [h...@localhost rsync-test]$ ls -l total 8 drwxr-xr-x 1 hans hans 0 2010-09-02 18:24 2bchanged/ drwxr-xr-x 1 hans hans 0 2010-09-03 16:45 New Folder/ drwxr-xr-x 1 hans hans 0 2010-09-03 16:42 New Folder (2)/ and indeed - although I specified rsync -vvv (most verbose output) - rsync silently ignores chmod(2) calls with emphasis on silently: 2010/09/03 16:45:49 [7882] send_files(15, /home/hans/rsync-files/rsync-test/New Folder) 2010/09/03 16:45:49 [7882] cd+ send home/hans/rsync-files/rsync-test/New Folder 2010/09/03 16:45:49 [7882] set modtime of rsync-test/New Folder to (1283525117) Fri Sep 3 16:45:17 2010 2010/09/03 16:45:49 [7882] delete_in_dir(rsync-test/New Folder) Since it is just a backup of my own personal workstation I decided to to use rsync -a --no-p : when restoring I just have to re-apply the correct permissions (if required at all). I decided to also remove the --log-file-format at all. This gives the log-file I prefer. Thanks for your comments and recommendations, Kind regards, Hans Troost -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Minimize log file: get rid of .d...p..... send
], [], NULL, {60, 0}) = 1 (in [6], left {59, 96}) read(6, \1\0\0\7, 4) = 4 select(7, [6], [], NULL, {60, 0}) = 1 (in [6], left {59, 96}) read(6, \0, 1)= 1 waitpid(3902, 0xbfaa6e2c, WNOHANG) = 0 gettimeofday({1283530015, 718700}, NULL) = 0 select(0, NULL, NULL, NULL, {0, 2}) = ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- waitpid(-1, [{WIFEXITED(s) WEXITSTATUS(s) == 0}], WNOHANG) = 3902 waitpid(-1, 0xbfaa6a8c, WNOHANG)= -1 ECHILD (No child processes) sigreturn() = ? (mask now []) gettimeofday({1283530015, 739244}, NULL) = 0 waitpid(3902, 0xbfaa6e2c, WNOHANG) = -1 ECHILD (No child processes) fstat64(1, {st_mode=S_IFREG|0600, st_size=18226, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb75d9000 write(1, \n, 1) = 1 time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] Number of files: 12\n, 47) = 47 write(1, Number of files: 12\n, 20) = 20 time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] Number of files transferred: 0\n, 58) = 58 write(1, Number of files transferred: 0\n, 31) = 31 time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] Total file size: 1.14K bytes\n, 56) = 56 write(1, Total file size: 1.14K bytes\n, 29) = 29 time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] Total transferred file size: 0 bytes\n, 64) = 64 write(1, Total transferred file size: 0 bytes\n, 37) = 37 time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] Literal data: 0 bytes\n, 49) = 49 write(1, Literal data: 0 bytes\n, 22) = 22 time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] Matched data: 0 bytes\n, 49) = 49 write(1, Matched data: 0 bytes\n, 22) = 22 time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] File list size: 326\n, 47) = 47 write(1, File list size: 326\n, 20) = 20 time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] File list generation time: 0.010 seconds\n, 68) = 68 write(1, File list generation time: 0.010 seconds\n, 41) = 41 time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] File list transfer time: 0.000 seconds\n, 66) = 66 write(1, File list transfer time: 0.000 seconds\n, 39) = 39 time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] Total bytes sent: 349\n, 49) = 49 write(1, Total bytes sent: 349\n, 22) = 22 time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] Total bytes received: 22\n, 52) = 52 write(1, Total bytes received: 22\n, 25) = 25 write(1, \n, 1) = 1 time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] sent 349 bytes received 22 bytes 742.00 bytes/sec\n, 79) = 79 write(1, sent 349 bytes received 22 bytes 742.00 bytes/sec\n, 52) = 52 time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] total size is 1.14K speedup is 3.16\n, 64) = 64 write(1, total size is 1.14K speedup is 3.16\n, 37) = 37 rt_sigaction(SIGUSR1, {SIG_IGN}, NULL, 8) = 0 rt_sigaction(SIGUSR2, {SIG_IGN}, NULL, 8) = 0 waitpid(3902, 0xbfaa6e2c, WNOHANG) = -1 ECHILD (No child processes) time(NULL) = 1283530015 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:06:55 [3901] sent 349 bytes received 23 bytes total size 1172\n, 78) = 78 exit_group(0) = ? Regards Hans Troost -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Re: Minimize log file: get rid of .d...p..... send
, 0}) = 1 (out [5], left {59, 96}) write(5, \1\0\0\7\0, 5) = 5 time(NULL) = 1283532600 select(7, [6], [], NULL, {60, 0}) = 1 (in [6], left {59, 95}) read(6, \1\0\0\7, 4) = 4 select(7, [6], [], NULL, {60, 0}) = 1 (in [6], left {59, 95}) read(6, \0, 1)= 1 waitpid(8136, 0xbf96bb8c, WNOHANG) = 0 gettimeofday({1283532600, 842262}, NULL) = 0 select(0, NULL, NULL, NULL, {0, 2}) = ? ERESTARTNOHAND (To be restarted) --- SIGCHLD (Child exited) @ 0 (0) --- waitpid(-1, [{WIFEXITED(s) WEXITSTATUS(s) == 0}], WNOHANG) = 8136 waitpid(-1, 0xbf96b7ec, WNOHANG)= -1 ECHILD (No child processes) sigreturn() = ? (mask now []) gettimeofday({1283532600, 862584}, NULL) = 0 waitpid(8136, 0xbf96bb8c, WNOHANG) = -1 ECHILD (No child processes) fstat64(1, {st_mode=S_IFREG|0600, st_size=63818, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb76a4000 write(1, \n, 1) = 1 time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] Number of files: 15\n, 47) = 47 write(1, Number of files: 15\n, 20) = 20 time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] Number of files transferred: 2\n, 58) = 58 write(1, Number of files transferred: 2\n, 31) = 31 time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] Total file size: 1.56K bytes\n, 56) = 56 write(1, Total file size: 1.56K bytes\n, 29) = 29 time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] Total transferred file size: 1008 bytes\n, 67) = 67 write(1, Total transferred file size: 1008 bytes\n, 40) = 40 time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] Literal data: 1008 bytes\n, 52) = 52 write(1, Literal data: 1008 bytes\n, 25) = 25 time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] Matched data: 0 bytes\n, 49) = 49 write(1, Matched data: 0 bytes\n, 22) = 22 time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] File list size: 368\n, 47) = 47 write(1, File list size: 368\n, 20) = 20 time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] File list generation time: 0.006 seconds\n, 68) = 68 write(1, File list generation time: 0.006 seconds\n, 41) = 41 time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] File list transfer time: 0.000 seconds\n, 66) = 66 write(1, File list transfer time: 0.000 seconds\n, 39) = 39 time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] Total bytes sent: 1.48K\n, 51) = 51 write(1, Total bytes sent: 1.48K\n, 24) = 24 time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] Total bytes received: 95\n, 52) = 52 write(1, Total bytes received: 95\n, 25) = 25 write(1, \n, 1) = 1 time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] sent 1.48K bytes received 95 bytes 3.15K bytes/se..., 80) = 80 write(1, sent 1.48K bytes received 95 bytes 3.15K bytes/sec\n, 53) = 53 time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] total size is 1.56K speedup is 0.99\n, 64) = 64 write(1, total size is 1.56K speedup is 0.99\n, 37) = 37 rt_sigaction(SIGUSR1, {SIG_IGN}, NULL, 8) = 0 rt_sigaction(SIGUSR2, {SIG_IGN}, NULL, 8) = 0 waitpid(8136, 0xbf96bb8c, WNOHANG) = -1 ECHILD (No child processes) time(NULL) = 1283532600 stat64(/etc/localtime, {st_mode=S_IFREG|0644, st_size=2917, ...}) = 0 write(3, 2010/09/03 18:50:00 [8135] sent 1520 bytes received 96 bytes total size 1598..., 79) = 79 exit_group(0) = ? Hans Troost -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options
Re: Minimize log file: get rid of .d...p..... send
Thanks Matt, That clarifies it for me. Completely happy with all your support: learned a lot, now made up my mind about my backups and know how to achieve this. Regards, Hans Troost -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html
Minimize log file: get rid of .d...p..... send
I'm just starting with rsync, googled and experienced a lot, but get stuck with minimizing the log-file: I only want to see the real changes: new, updated and deleted files/directories in the log-file. The LOG-file always contains a lot of lines like: 2010/08/31 20:19:01 [24573] .d...p. send home/hans/Desktop 2010/08/31 20:19:05 [24573] .d...p. send home/hans/Documents/PCPa I did not change anything, also not the permissions. So these directories are unchanged! Question: how to get rid of these lines, while keeping lines like: 2010/08/31 20:19:01 [24573] f.stp. send home/hans/2bedited.txt 2010/08/31 20:19:01 [24573] f+ send home/hans/Documents/newfile.txt Want to use rscync for a manual backup (now and then) and my situation is: Source: workstation with PCLinuxOS 2010. Destination: a NAS (LaCie Ethernet Disk mini) with a share called Backup, mounted as /mnt/backup: [h...@localhost mnt]$ ls -l ... drwxr-xr-x 4 hans hans0 2010-08-31 20:18 backup/ ... [h...@localhost mnt]$ ls -l backup total 0 drwxr-xr-x 2 hans hans 0 2010-08-31 19:39 deleted/ drwxr-xr-x 9 hans hans 0 2010-08-31 20:18 hans/ drwxr-xr-x 2 hans hans 0 2010-08-31 20:18 updated/ [h...@localhost mnt]$ the rsync command I use is: rsync -axhhX --stats --delete --delete-excluded --backup --backup-dir-dels=deleted/`date +%Y-%m-%d` --backup-dir=updated/`date +%Y-%m-%d` --suffix=.`date +%H%M` --log-file=/home/hans/rsync-files/rsync-log.`date +%Y%m%d-%H%M` --log-file-format=%i %o %f --exclude-from=/home/hans/rsync-files/exclude.txt /home/hans /mnt/backup NB: also the old mailing list thread rsync 2.6.4 - directory always updated from John Stoffel in 2005 did not help me (I'm not that good in *nix file system stuff) Best regards, Hans Troost -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html