Welcome! Log In Create A New Profile


Best way for automounting external USB drive(s)

Posted by tcatone 
Re: Best way for automounting external USB drive(s)
April 05, 2020 06:26PM
rsync syntax is a little bit picky!

Back up hitch to hammer.

/usr/bin/rsync -aAXv --stats --delete --log-file=./rsync.backup.hitch.log /share/hitch/* /share/hammer

But this only works for shares that are visible in same box (you are pushing to a destination).


Easier commands to do: pulling instead of pushing.

cd /share/hammer
/usr/bin/rsync -aAXv --stats --delete  /share/hitch/* .

Of course you can use a log file like the rsync "push" command.

And put them inside a shell script, run it in the backgound so you dont need to keep a SSH session opened while it might take a long time to run.

And another step further is to set up a cron job to run the script dailly.

Forum Wiki
bodhi's corner (buy bodhi a beer)

Edited 1 time(s). Last edit at 04/05/2020 07:15PM by bodhi.

Your Email:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.