How to rsync files and folders to remote machines using ssh
We’ve already looked at using rsync to backup files and folders to external drives, now let’s use it to move date too and from remote machines. What you’ll need is to have ssh installed on both machines, and accounts to log into on both of them.
So, if you have two machines, say a laptop and a server here’s how you’d copy a bunch of files from your laptop to the server with a one line command.
In my case, I’ve got a bunch of music files in a directory called music on my laptop. I want to keep a copy of this directory on my server in case anything happens to my laptop. So I open up a terminal session and type the following:
- Login or register to post comments
- Printer-friendly version
- 1518 reads
- PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
digiKam 7.7.0 is releasedAfter three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. |
Dilution and Misuse of the "Linux" Brand
|
Samsung, Red Hat to Work on Linux Drivers for Future TechThe metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. |
today's howtos
|
Backuping: Send a (tar) backup over ssh
As a follow-up:
Two days ago, arsgeek kindly showed us how to backup with rsync over ssh.
Sure, it’s a great way to backup your files on a central file server, but what if you want to backup the entire machine? Moreover, what if I want to backup an entire machine over the internet?
The best way I found for this, is to use tar over ssh.
It’s really simple, you use your same old tar backup command you used to backup on an external hard drive, modify it a bit and append this to the end:
Full Story.
----
You talk the talk, but do you waddle the waddle?