Unix & Linux Asked on December 1, 2021
I want to use rsync
for creating complete, bootable backups of a LUKS-encrypted Linux disk. Does it support hot-transferring of files, i.e. can I use rsync
from a running (idling) system with opened files, processes etc.?
Yes.
There is rarely exclusive file locking as there is on Windows systems. The up side of this is that it's easy to copy files that are open by other processes - even files that are being written. The down side is that it's easy to copy files that are open by other processes and that are being written.
rsync
does notice when a file it's copying has been updated underneath it, and will fail the copy of that file. A re-run will usually succeed - provided of course that the file isn't still being updated.
Remember rsync -a
to ensure you copy timestamps and permissions. Also be aware that rsync
between two local devices/filesystems is nowhere near as efficient as copying between two systems. It trades network efficiency for disk efficiency.
Answered by roaima on December 1, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP