Useful commands

Aus wiki.frank-wulf.de
Zur Navigation springen Zur Suche springen

Copying/Cloning all data from one folder to another:

rsync -axHAWXS --numeric-ids --info=progress2 /srv/data_old/ /srv/data

Copying a file keeping the existing file attributes (owner, timestamp, etc.)

cp -r --preserve=all sourcefile targetfile