Useful commands: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Wulf (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Wulf (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| (Eine dazwischenliegende Version desselben Benutzers wird 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> | |||
<syntaxhighlight lang"bash"> | 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