Linux & Terminali

rsync options (-avz, --delete)

Në shqip: Opsionet e rsync

ShpjegimiSQ

rsync kopjon skedarë — lokalisht ose në server — por dërgon vetëm atë që ka ndryshuar. Ideal për backup dhe deploy. Kujdes me „/“ në fund të dosjes: ndryshon nëse kopjohet dosja apo përmbajtja e saj.

EnglishEN

rsync copies files — locally or to a server — but only sends what changed. Ideal for backups and deploys. Mind the trailing “/” on folders: it changes whether the folder or its contents is copied.

Si ta mendosh

Si të çosh në lavanderi vetëm rrobat e pista, jo gjithë dollapin.

Lexoje në anglisht

Like taking only the dirty clothes to the laundry, not the whole wardrobe.

Shembull kodibash

rsync -avz dist/ user@server:/var/www/app/
rsync -av --delete foto/ /mnt/backup/foto/

Terma të lidhur