קוד: |
$ pwd /run/media/miki2/Photos/Photos/2016 [miki2@Miki_Desk 2016]$ cd .. [miki2@Miki_Desk Photos]$ rsync --files-from=/home/miki2/newfiles.txt -av /run/media/miki2/Photos/TMP/ rsync version 3.1.2 protocol version 31 Copyright (C) 1996-2015 by Andrew Tridgell, Wayne Davison, and others. Web site: http://rsync.samba.org/ Capabilities: 64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints, socketpairs, hardlinks, symlinks, IPv6, batchfiles, inplace, append, ACLs, xattrs, iconv, symtimes, prealloc rsync comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions. See the GNU General Public Licence for details. rsync is a file transfer program capable of efficient remote update via a fast differencing algorithm. |
קוד: |
2016 │ ├── 2016-01-05_Sunsets │ ├── 2016-01-11_Sunset │ ├── 2016-01-21 │ ├── 2016-01-22 │ ├── 2016-01-23 │ ├── 2016-01-28_Family_Acre │ ├── 2016-01-30_Ziv │ ├── 2016-01-31 |
קוד: |
$ cd ~ [miki2@Miki_Desk ~]$ cat newfiles.txt |more ./2016/2016-02-12_Jeen_R/Jeen-0774-20160212.jpg ./2016/2016-02-12_Jeen_R/Jeen-0900-20160212.jpg ./2016/2016-02-12_Jeen_R/Jeen-0950-20160212.jpg ./2016/2016-02-12_Jeen_R/Jeen-0964-20160212.jpg ./2016/2016-02-12_Jeen_R/Jeen-1030-20160212.jpg ./2016/2016-02-12_Jeen_R/Jeen-1084-20160212.jpg .. |
קוד: |
$ pwd /run/media/miki2/Photos/Photos/2016 [miki2@Miki_Desk 2016]$ rsync 2016-01-05_Sunsets/ -av /run/media/miki2/Photos/TMP sending incremental file list ./ Sunset-0014-20160105.dng Sunset-0015-20160105.dng |
קוד: |
-r, --recursive
This tells rsync to copy directories recursively. See also --dirs (-d). Beginning with rsync 3.0.0, the recursive algorithm used is now an incremental scan that uses much less memory than before and begins the transfer after the scanning of the first few directories have been completed. This incremental scan only affects our recursion algorithm, and does not change a non-recursive transfer. It is also only possible when both ends of the transfer are at least version 3.0.0. Some options require rsync to know the full file list, so these options disable the incremental recursion mode. These include: --delete-before, --delete-after, --prune-empty-dirs, and --delay-updates. Because of this, the default delete mode when you specify --delete is now --delete-during when both ends of the connection are at least 3.0.0 (use --del or --delete-during to request this improved deletion mode explicitly). See also the --delete-delay option that is a better choice than using --delete-after. Incremental recursion can be disabled using the --no-inc-recursive option or its shorter --no-i-r alias. |
קוד: |
cd /run/media/miki2/Photos/Photos find . -type f -newermt 20160901 -exec rsync -avR --relative {} /run/media/miki2/Archieve04_Mrr |