Useful commands: Unterschied zwischen den Versionen

Aus wiki.frank-wulf.de
Zur Navigation springen Zur Suche springen
Die Seite wurde neu angelegt: „Copying/Cloning all data from one folder to another: rsync -axHAWXS --numeric-ids --info=progress2 /srv/data_old/ /srv/data“
 
Keine Bearbeitungszusammenfassung
 
(3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
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>


rsync -axHAWXS --numeric-ids --info=progress2 /srv/data_old/ /srv/data
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