i working on rsync backup script , cannot includes , excludes work properly. want exclude except things want backup. created include.txt file , started 1 file.
code:
/users/johnc/test.txt
i trying run command outside of script work first, here is
code:
rsync -av --include-from 'include.txt' --exclude '*' / /volumes/backup
any thoughts on doing wrong here?
a file containing list of exact files sync sounds --files-from=file option.
me, suggests use of --include-from or --exclude wrong, , cause malfunction, such things being excluded or included aren't in file-list.
furthermore, --include-from not list of files include, patterns include. pattern not same filename.
finally, without trying it, pattern options don't follow way options shown in man page.
man page shows --exclude=pattern, not same --exclude pattern.
equals-sign not space.
gathered above quick browse of rsync's man page, looking @ options show.
did come command-line following example found on web, or other source? if so, url?
Forums Macs Mac Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment