You are not logged in.

#1 2011-11-30 01:53:32

BAJ716
Member
Registered: 2011-02-13
Posts: 32

Why does rsync -Pauv fail to preserve the time stamp?

I'm trying to backup files to a USB HDD using rsync.  I specify -a, which as I understand it should preserve all the file attributes including the time stamp, but the time stamp of all the files on the USB HDD is the time they were copied.

What am I doing wrong?

TIA,
-Brad

Offline

#2 2011-11-30 10:22:11

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: Why does rsync -Pauv fail to preserve the time stamp?

You ran it with the verbose flag... Any output to share?  Any errrors reported?

Offline

#3 2011-12-01 03:50:12

BAJ716
Member
Registered: 2011-02-13
Posts: 32

Re: Why does rsync -Pauv fail to preserve the time stamp?

Shoot, I did not send that particular rsync to a log file.  I have logs of other file transfers, and could setup some tests.  Anything in particular I should look for?

FYI, on a somewhat related note, I found out the hard way that using '*' after the last / in the path causes rsync to skip hidden folders and files in the specified folder.

For example,

   rsync -Pauv /home/me/* /media/usbdrive/me

will skip any hidden files or folders in /home/me

   rsync -Pauv /home/me/ /media/usbdrive/me

will act on hidden files and folders in /home/me

That may be a "duh" to a lot of users in this forum, but it was eye-opening for someone like me who has been brain-washed by Billy for the last 25 years.

Last edited by BAJ716 (2011-12-01 03:51:09)

Offline

#4 2011-12-01 09:14:17

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: Why does rsync -Pauv fail to preserve the time stamp?

Errors smile  What you're using should apply them... wait, are you syncing ext4/3/2 to ntfs?

Offline

Board footer

Powered by FluxBB