D-Link Forums

The Graveyard - Products No Longer Supported => D-Link Storage => DNS-323 => Topic started by: random404 on August 12, 2011, 04:28:29 AM

Title: Cannot preserve timestamps when backing up files to DNS 323
Post by: random404 on August 12, 2011, 04:28:29 AM
I've got a Linux desktop from which I connect to my DNS 323 using 'mount -t cifs ...'. When I try to copy files to it using 'cp -a', where the -a flag preserves attributes of the file, I get an error:

Code: [Select]
cp: preserving times for `/path/to/file': Operation not permitted
On the DNS 323, the following is the 'ls -l' output for the original and the copied file, respectively:

Code: [Select]
-rw-rw-r--. 1 user user 244153018 Aug 11 16:11
-rwxrwxrwx. 1 502 502 244153018 Aug 12 12:15

I'd like them to be the same. I think '502' is the user from which I connect to the DNS 323 in my mount command - though I use the actual name of the user, e.g. 'myuser' rather than the id of 502 even though that is what appears. Do I need to mount the DNS 323 using the administrative user or do I need to change permissions or something?

What can I do to preserve as much information from the original file as possible when backing up to the DNS 323? Thanks.
Title: Re: Cannot preserve timestamps when backing up files to DNS 323
Post by: kcee on August 31, 2011, 09:34:34 AM
have you solved the problem yet? I am facing the same issue here.
Title: Re: Cannot preserve timestamps when backing up files to DNS 323
Post by: magic999 on August 31, 2011, 01:42:15 PM
I tried to use the internal "scheduling settings" within the "Applications" menu of the DNS-323 to use it to automatically back up a couple of my Windows based PCs' Documents directories and had exactly the same problem.

If anyone has found a solution I would be very interested.
Title: Re: Cannot preserve timestamps when backing up files to DNS 323
Post by: random404 on October 11, 2011, 01:34:25 AM
So of course the owner can't be preserved because the same owner doesn't exist on my desktop and the DNS 323, but there must be some way to preserve timestamps of files? Could anyone please suggest anything to try?

(I've got thousands of photos I want to transfer to the DNS 323 and delete from my desktop but would prefer not to do so until I know how to preserve the timestamp information, as I wouldn't want to lose that valuable information.)

Thanks so much.
Title: Re: Cannot preserve timestamps when backing up files to DNS 323
Post by: bjdo on October 13, 2011, 11:52:30 AM
mount using nfs instead of cifs.
consider putting them in some sort of archive like tar, zip or iso.