When I get home, I plan to import the catalog from my laptop into my master Lightroom library, but if something happens to my laptop on the way home, I should be able to use the backup I’m creating. If I were really brave, I could add -delete to the command to ensure that any deletions I make on the laptop are reflected at home.Īfter the copy is complete, I can go back to the first window and stop the SSH session. ~/Pictures/Lightroom Desktop/East directory on my home server is an image of the Lightroom directory here (including the catalog). exclude '*Previews*' -exclude '*ackup*' \ Now I’m ready to do the copying I need to open another terminal window and issue this command: rsync -auv -e "ssh -p 9091" \ The useage of the daemon eliminates the overhead of SSH tunneling, yet the data is transfered. Office is the system I want to connect to at home I could also use the local network address at home (for example, 192.168.99.99). With rsync, you can rely on SSH for remote data transfer. ssh/config file to point to my gateway system’s SSH port, so I can set up the tunnel by opening a terminal window and issuing this command: ssh -NL 9091:office:22 homeĩ091 is an arbitrary port number it can be anything more than 1024. I have set up both machines at home to trust my SSH key, so passwords and passing certificates aren’t a problem. So I need to use an SSH tunnel to get to the actual target machine (I’m using rsync to do the copy to avoid sending more data than I need, especially when connected over my phone). I have one machine at home with its SSH port exposed to the Internet it’s not the machine I want to send the files to. Set RSYNCRSH environment variable By passing the -e flag You can set either of those to all of the flags you'll need for ssh to connect. Getting the photos into Lightroom is easy, but I want to replicate everything to my server at home for backup purposes. You can control the ssh command (strictly speaking, the rsh command even though the default is ssh these days) that rsync uses in two ways. I’ve set up Lightroom on my laptop as the repository of the pictures I’m taking on the trip.
0 Comments
Leave a Reply. |