Useful commands: Unterschied zwischen den Versionen

Aus wiki.frank-wulf.de
Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
Zeile 1: Zeile 1:
Copying/Cloning all data from one folder to another:
Copying/Cloning all data from one folder to another:
<syntaxhighlight lang="bash">rsync -axHAWXS --numeric-ids --info=progress2 /srv/data_old/ /srv/data</syntaxhighlight>


<syntaxhighlight lang="bash">rsync -axHAWXS --numeric-ids --info=progress2 /srv/data_old/ /srv/data</syntaxhighlight>
Copying a file keeping the existing file attributes (owner, timestamp, etc.)
<syntaxhighlight lang="bash">cp -r --preserve=all sourcefile targetfile</syntaxhighlight>

Aktuelle Version vom 22. Mai 2018, 16:41 Uhr

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