• February 24, 2025, 01:38:05 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: Cannot preserve timestamps when backing up files to DNS 323  (Read 5213 times)

random404

  • Level 1 Member
  • *
  • Posts: 23
Cannot preserve timestamps when backing up files to DNS 323
« 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.
Logged

kcee

  • Level 1 Member
  • *
  • Posts: 1
Re: Cannot preserve timestamps when backing up files to DNS 323
« Reply #1 on: August 31, 2011, 09:34:34 AM »

have you solved the problem yet? I am facing the same issue here.
Logged

magic999

  • Level 1 Member
  • *
  • Posts: 10
Re: Cannot preserve timestamps when backing up files to DNS 323
« Reply #2 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.
Logged

random404

  • Level 1 Member
  • *
  • Posts: 23
Re: Cannot preserve timestamps when backing up files to DNS 323
« Reply #3 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.
Logged

bjdo

  • Level 1 Member
  • *
  • Posts: 11
Re: Cannot preserve timestamps when backing up files to DNS 323
« Reply #4 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.
« Last Edit: October 13, 2011, 11:56:56 AM by bjdo »
Logged