scripts/sync: remove unnecessary sudo
calls when mounting
This commit is contained in:
@@ -11,17 +11,12 @@ shift
|
|||||||
|
|
||||||
case "$host" in
|
case "$host" in
|
||||||
desko)
|
desko)
|
||||||
sudo mount /mnt/desko/home
|
|
||||||
sane-sync-music --compat /mnt/servo/media/Music /mnt/desko/home/Music "$@"
|
sane-sync-music --compat /mnt/servo/media/Music /mnt/desko/home/Music "$@"
|
||||||
;;
|
;;
|
||||||
lappy)
|
lappy)
|
||||||
sudo mount /mnt/lappy/home
|
|
||||||
sane-sync-music --compress --compat /mnt/servo/media/Music /mnt/lappy/home/Music "$@"
|
sane-sync-music --compress --compat /mnt/servo/media/Music /mnt/lappy/home/Music "$@"
|
||||||
;;
|
;;
|
||||||
moby)
|
moby)
|
||||||
sudo mount /mnt/moby/home
|
|
||||||
sudo mount /mnt/desko/home
|
|
||||||
sudo mount /mnt/servo/media/Books
|
|
||||||
# copy photos/screenshots from moby to desko:
|
# copy photos/screenshots from moby to desko:
|
||||||
rsync -arv --exclude servo-macros /mnt/moby/home/Pictures/ /mnt/desko/home/Pictures/moby/
|
rsync -arv --exclude servo-macros /mnt/moby/home/Pictures/ /mnt/desko/home/Pictures/moby/
|
||||||
# copy books from servo to moby; delete old/untracked ones, but keep KOreader state files (sdr)
|
# copy books from servo to moby; delete old/untracked ones, but keep KOreader state files (sdr)
|
||||||
|
Reference in New Issue
Block a user