F5F Stay Refreshed Software Operating Systems Robocopy on Linux

Robocopy on Linux

Robocopy on Linux

M
MechaBrawler17
Junior Member
36
08-06-2025, 11:16 PM
#1
Looking for a Linux alternative to sync network folders on a USB drive. Robocopy works well in Windows, but I found Rysnc doesn’t support Samba or preserve file attributes. You might need to use `rsync` with appropriate options or write a custom script in Bash or Python to achieve similar results.
M
MechaBrawler17
08-06-2025, 11:16 PM #1

Looking for a Linux alternative to sync network folders on a USB drive. Robocopy works well in Windows, but I found Rysnc doesn’t support Samba or preserve file attributes. You might need to use `rsync` with appropriate options or write a custom script in Bash or Python to achieve similar results.

F
fartgamer1234
Member
154
08-26-2025, 03:24 PM
#2
The closest match is rsync
F
fartgamer1234
08-26-2025, 03:24 PM #2

The closest match is rsync

N
NicolleSpacki
Member
173
08-26-2025, 04:39 PM
#3
Set up the Samba share. After that, you can manage it as a local folder, eliminating the need for rsync concerns. To keep permissions and attributes intact, use --archive (-a). I'm not entirely sure this applies to Windows attributes though.
N
NicolleSpacki
08-26-2025, 04:39 PM #3

Set up the Samba share. After that, you can manage it as a local folder, eliminating the need for rsync concerns. To keep permissions and attributes intact, use --archive (-a). I'm not entirely sure this applies to Windows attributes though.

B
bravekitten
Junior Member
4
08-26-2025, 04:55 PM
#4
Alternative method needed for copying attributes. Works around local SMB setup, but rsync struggles with hidden and read-only files on NTFS, even when using --xattrs(-X). Same issue encountered with cp command.
B
bravekitten
08-26-2025, 04:55 PM #4

Alternative method needed for copying attributes. Works around local SMB setup, but rsync struggles with hidden and read-only files on NTFS, even when using --xattrs(-X). Same issue encountered with cp command.

I
Ipod984
Senior Member
707
08-27-2025, 12:56 AM
#5
This problem involves transferring access rights across various file systems instead of using rsync or cp directly. For details, consider alternative methods like leveraging ntfs-3g.secaudit to capture permissions recursively from the source, store them, then reapply with rsync. When moving to a different filesystem, define an equivalent setting to match the original configuration.
I
Ipod984
08-27-2025, 12:56 AM #5

This problem involves transferring access rights across various file systems instead of using rsync or cp directly. For details, consider alternative methods like leveraging ntfs-3g.secaudit to capture permissions recursively from the source, store them, then reapply with rsync. When moving to a different filesystem, define an equivalent setting to match the original configuration.