SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello!
When i do rsync -avz /source/ /dest it kept appearing a lot of hidden files like .abc.pdf.167RAI.
I delete them using: find /dir -name '.*' -type f -print0 | xargs -0 /bin/rm -f
And when i rsync again the damn files appears in my drive!
Is this normal?
Thx a lot
EddY
Hi, I've the same problem, but I can't find a right solution. I've read man pages, and I think that exclude option and filters can be useful only if hidden files ar present in source directory, The problem is that hidden files are generated by rsync
Hi,
rsync creates a temporary hidden file during a transfer,
but the file is renamed when the transfer is complete.
Common problem:
If you're syncing to or from FAT32 or NTFS,
you'll need to pass an extra switch to rsync; --modify-window=1
(disregard if FAT32/NTFS aren't involved)
Hi,
rsync creates a temporary hidden file during a transfer,
but the file is renamed when the transfer is complete.
Common problem:
If you're syncing to or from FAT32 or NTFS,
you'll need to pass an extra switch to rsync; --modify-window=1
(disregard if FAT32/NTFS aren't involved)
nothing good!! I've tried with --modify-window=1 but the result is the same. I've seen that files generated in nas direcroty have a newer date, so the option -t don't preserve the original date
From the fact that you tried the modify-window switch I conclude that, at least, either source or target are using some kind of FAT/NTFS filesystem.
If it's NTFS, ok. But if it's FAT: This has driven me nuts in the past many times. Because it is impossible to preserve filemodes and such, when FAT is involved. Other metadata, like access times, may be lost, also, after the transfer. And what really sucks, is that filenames appear correctly spelled on the screen, but are actually converted to 8.3 length and capital letters. Finally, there's no support for international characters.
And, BTW, things get really obscure, if you transfer between a remote drive and local one. In such a situation you will find out, that even within a Microsoft-only environment things aren't handled correctly. Suddenly you'll see lots of Tilde characters (~) in truncated file names, and so on.
But these are all restrictions of FAT, not of rsync, and it's just a guess that your problem may have to do with one or some of them.
But maybe, you can provide a little more detail, so someone around here might be able to help better than I can.
Hidden files are not present in my source directory, but only in destination directory.
for gargamel:
My destination folder is a NAS disk that can be formatted by web interface only in fat32. I note that files take date form NAS time server, so files get nas date. I solved this problem with two commands:
Code:
\cp -u -p -f -r -v /[source]/ /[destination]
with cp command "-u" I update files from source to destination without a phisical copy everytime, but just with a comparison.And "-p" option which preserve file date,owner and group.
Code:
rsync -a -h -v --delete-after /[source] /[destination]
After this, I execute rsync command because cp command don't remove files that has been removed by the user from source, rsync find out files with the same date of source files (thanks to cp -p) and only compare files and remove old files from destination
With this two operation I can simulate more or less a good rsync made with ntfs partition
In the beginning i remove the hidden files in both source and destination directories to have them free of hidden files!
After rsync i clean the destination dir with:
find /destination/directory -name '.*' -type f -print0 | xargs -0 /bin/rm -f
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.