use rsync to synchronise photo folder from a remote system to a local server - hydrogeologger/pyduino GitHub Wiki

Synchronise contents in the folder 'source' to the folder /home/users/destination/ at a remote machine

1. option 1

Run the commands from the system that takes photos.

 rsync -a  --no-o --no-g  source/   [email protected]:/home/users/destination/

note that after the command, all the contents in ''source'' will be in the folder ''destination''

2 . option 2

 rsync -a  --no-o --no-g   source   [email protected]:/home/users/destination/

this will create a new folder '[email protected]:/home/users/destination/source' and it is identical to 'source'

3. option 3

 rsync -a  --no-o --no-g   source   [email protected]:/home/users/destination

This is the same as the option 2.

4. option 4

 rsync -a  --no-o --no-g  --delete source/   [email protected]:/home/users/destination

The files in 'destination' while not in 'source' will be deleted.