Labthrift Labthrift What to buy. What to skip. Why.

Written 30 Aug 2026. This is a how-to, not a product card.

Sync files so only changes copy

After SSH works, sync files with rsync so a copy only moves what changed. You don't need a NAS sync app for this.

A whole-file copy every time is wasteful once a folder already has most of the files. Tonight you sync two folders: rsync. Rsync copies what changed. Start with two folders in home so you don't need two machines for the lesson. You are still only practicing on the computer. It does not need a NAS sync app for this one job.

Skip until SSH already works

SSH from the couch should already get you a prompt. If one file from the laptop is what you want, that is copy a file to the computer from your laptop. If a whole file copy on the computer is what you want, that is copy a file without leaving the computer. If a folder packed is what you want, that is pack files into one archive. Skip --delete for this practice. It can erase files on the destination.

What this is

rsync syncs files so only changes copy. You type rsync -av ~/sync-src/ ~/sync-dst/. The trailing slash on the source means the contents of sync-src go into sync-dst, not a nested sync-src folder. -a is archive mode: it keeps times and permissions. -v lists names as they move. -n is dry-run: see what would move without writing. Skip --delete until you are sure. It can erase files on the destination that are missing from the source.

Practice rsync in home

SSH in. Make sure home is where you sit:

pwd

You want a path that ends in your login name. If not:

cd ~

Make two tiny folders:

mkdir -p ~/sync-src ~/sync-dst

seq 1 20 > ~/sync-src/a.txt

Optional second file:

echo hello > ~/sync-src/b.txt

First sync. The trailing slash on ~/sync-src/ means the contents go into sync-dst:

rsync -av ~/sync-src/ ~/sync-dst/

List both sides:

ls ~/sync-src ~/sync-dst

You want a.txt (and b.txt if you made it) on both sides. Change one file on the source:

echo changed >> ~/sync-src/a.txt

Run sync again:

rsync -av ~/sync-src/ ~/sync-dst/

You want a.txt to show up in the verbose list. Unchanged files stay quiet. Only the change moves. Optional dry-run so you see what would move without writing:

rsync -avn ~/sync-src/ ~/sync-dst/

-n means dry-run. Handy before a sync you are unsure about.

Debian and Ubuntu usually already have rsync. Don't make apt the job. If rsync is missing:

sudo apt install rsync

Then stop. That install is not the lesson.

When you are done, throw the practice files away. Careful delete only. That is delete a file carefully. Skip rm -rf.

rm -i ~/sync-src/a.txt ~/sync-src/b.txt ~/sync-dst/a.txt ~/sync-dst/b.txt

Then, if the folders are empty and you want them gone:

rmdir ~/sync-src ~/sync-dst

Skip rm -rf.

Useful extras, still home only

Tonight's practice should work entirely on the computer between two home folders so you don't need two machines for the lesson. Optional aside later: from your laptop over SSH you can sync a local folder into home, for example rsync -av ./local-folder/ user@lab:/home/user/sync-dst/. Keep that aside short. The main path tonight is practice on the computer.

Skip --delete as tonight's flag. It can erase files on the destination that are missing from the source. Skip it until you are sure. Careful delete only when you mean to throw files away. That is delete a file carefully.

Skip buying a NAS sync app, Resilio, or Syncthing for tonight. rsync is enough for this lesson.

What this is not

This is not a copy from your laptop of one whole file. That is copy a file to the computer from your laptop. It is not a whole file copy on the computer every time. That is copy a file without leaving the computer. It is not pack for a folder. That is pack files into one archive. It is not shrink for one file. That is shrink one file. It is not a USB backup. That is a backup of the folder. It is not a house share. That is a folder the house can open. It is not opening SSH to the internet. That is keep the computer on the house network. Don't forward port 22.

What next

Need pieces first? Split a file into smaller pieces. Need one file from the laptop? Copy a file to the computer from your laptop. Need a whole file copy on the computer? Copy a file without leaving the computer. Need a folder packed? Pack files into one archive. Keep SSH on the house network: keep the computer on the house network. Don't forward port 22.

Skip

Sources

Debian: rsync. Ubuntu: rsync. Official pages only. For the login, see SSH from the couch. For a whole file copy on the computer, see copy a file without leaving the computer.

Also on this topic

SSH from the couchType commands on the computer from your laptop, on the house network. Password login first. Don't open this to the internet. Split a file into smaller piecesAfter SSH works, split one file into smaller pieces with split so a paste or copy fits size limits. You don't need a zip app for this. Copy a file to the computer from your laptopAfter SSH works, use scp to move one file without a USB stick. You don't need a NAS for this. Copy a file without leaving the computerAfter SSH works, copy a file with cp so you can edit a spare without wrecking the original. You don't need a NAS for this. Pack files into one archiveAfter SSH works, pack files into one archive with tar so you can copy one file instead of a folder. You don't need a zip app for this. Shrink one fileAfter SSH works, shrink one file with gzip so a copy is smaller. You don't need a zip app for this. Encode a file so you can paste itAfter SSH works, turn a file into pasteable text with base64 so you can copy small text without a USB stick. You don't need a zip app for this. Download a file onto the computerAfter SSH works, pull one file from a web address with curl. You don't need a browser on the computer for this. Check a file fingerprintAfter SSH works, check a file with sha256sum so you know it still matches the fingerprint you expected. You don't need a download manager for this. See whether two files are the sameAfter SSH works, compare two files with diff so you can tell if the spare still matches. You don't need a file viewer for this. Delete a file carefullyAfter SSH works, delete one file with rm -i. Ask first. Skip rm -rf. You don't need a NAS for this. Browse folders then copy one fileAfter SSH works, browse folders with sftp so you can pick a file and copy it. You don't need FileZilla or a NAS for this. Turn off password login once the key worksAfter the laptop key login is boring, tell SSH to stop accepting the password. The key is how you get in. A keyboard on the computer is the backup now. Keep the computer on the house networkSSH and Pi-hole belong on the house network. Skip this if you never opened the router settings. Don't forward port 22.