diff --git a/.rsync_examples.txt.swp b/.rsync_examples.txt.swp new file mode 100644 index 0000000..72827a8 Binary files /dev/null and b/.rsync_examples.txt.swp differ diff --git a/rsync_examples.txt b/rsync_examples.txt new file mode 100644 index 0000000..b2e27ad --- /dev/null +++ b/rsync_examples.txt @@ -0,0 +1,24 @@ +Notes for video: http://www.youtube.com/watch?v=a2Kvj9ff8Qk + + +rsync -avr ~/Public/sample /tmp/junko + +-a = archive +-v = verbose +-r = recursive + +# dont create parent folder (trailing slash) +rsync -avr ~/Public/sample/ /tmp/junko + +# delete files from destination folder that +# does not exist anymore in source folder +rsync -avr --delete ~/Public/sample/ /tmp/junko + + +------------- +# My MP3 sync sh/t for ipod/rockbox +# backup directory structure that has mp3s only, skips any other files + +rsync -avrm --delete-excluded --include '*/' --include '*.mp3' --exclude '*' ~/Public/sample/ /tmp/junko + +-m = delete empty folder