Working with backup files on a debian linux server

Compressing and packaging

## first check if there is anough space left at the target volume using "df" and "du"! df -h
du -sh files
tar --exclude='./myfolder' --exclude='*.tmp' -zcvf archive.tgz files

Multiple files and directories may follow to put them together in one single archive.

you can use wildcard to exclude multiple files at once: 


you can prefix with './' to exclude only files on root/current working dir:


In a TYPO3 context you may want to archive only files without processed folders:

tar --exclude='_processed_' --exclude='_temp_' -zcvf files.tgz fileadmin

Copy the created files to your local machine with e.g.

scp remoteuser@remoteserver:/remote/folder /my/local/directory/
Wir bearbeiten Dein Feedback aus diesem Formular über – Du kannst das E-Mail Feld leer lassen, falls Du keine Antwort von uns erwartest. Alternative Kontaktmöglichkeiten findest Du im Impressum.