LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-02-2007, 04:38 AM   #1
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
ncopy doesn't preserve date/time or owner


Hi all,

I intend to make a daily backup of data on my laptop on the university novel server. First I tried to do this with rsync, but this resulted in loads of error messages. Then I discovered ncopy, which, according to the man pages, should preserve time and owner.
My share on the server is mounted on /mnt/ which has a link in my home dir:
Code:
leon@shpritsz:~$ ll ~/ |grep mnt
lrwxrwxrwx 1 root root    57 May  2 11:20 H -> /mnt/OES-CL1_VVH_P2_SERVER/HOME/Home/Personal/crc/myusername
However, I get the following:
Code:
root@shpritsz:~$ ncopy -uvppr /tmp/testdir/ /home/leon/H/
ncopy: Unable to open source file: Inappropriate ioctl for device
ncopy: Unable to open source file: Inappropriate ioctl for device
ncopy: Unable to open source file: Inappropriate ioctl for device
ncopy: Unable to open source file: Inappropriate ioctl for device
NetWare copy: /tmp/testdir//dir2/file1 -> /home/leon/H//testdir//dir2/file1 0
ncopy: Unable to open source file: Inappropriate ioctl for device
NetWare copy: /tmp/testdir//dir2/file2 -> /home/leon/H//testdir//dir2/file2 0
ncopy: Unable to open source file: Inappropriate ioctl for device
NetWare copy: /tmp/testdir//dir2/file3 -> /home/leon/H//testdir//dir2/file3 0
ncopy: Unable to open source file: Inappropriate ioctl for device
ncopy: Unable to open source file: Inappropriate ioctl for device
NetWare copy: /tmp/testdir//dir3/file1 -> /home/leon/H//testdir//dir3/file1 0
ncopy: Unable to open source file: Inappropriate ioctl for device
NetWare copy: /tmp/testdir//dir3/file2 -> /home/leon/H//testdir//dir3/file2 0
ncopy: Unable to open source file: Inappropriate ioctl for device
NetWare copy: /tmp/testdir//dir3/file3 -> /home/leon/H//testdir//dir3/file3 0
The files do get copied, but not with preservation of time and owner:
Code:
root@shpritsz:~$ ls -l /tmp/testdir/
total 0
drwxr-xr-x 2 leon users  48 2007-05-01 12:59 dir1/
drwxr-xr-x 2 leon users 120 2007-05-01 13:00 dir2/
drwxr-xr-x 2 leon users 120 2007-05-01 13:00 dir3/
root@shpritsz:~$ ls -l /home/leon/H/testdir/
total 2
drwxr-xr-x 1 root root 512 2007-05-02 11:29 dir1/
drwxr-xr-x 1 root root 512 2007-05-02 11:29 dir2/
drwxr-xr-x 1 root root 512 2007-05-02 11:29 dir3/
root@shpritsz:~$
Does anyone know what is wrong? I have no idea what those messages mean (Inappropriate ioctl etc).

Cheers, Leon.
 
Old 05-03-2007, 03:54 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
"rsync -avz" preserves times, ownership etc...

"man rsync" will explain what the -a flag does (as well as all the other flags -a mentions).

You abandoned rsync due to errors but don't mind troubleshooting them in ncopy....
 
Old 05-03-2007, 04:49 PM   #3
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Original Poster
Rep: Reputation: 90
Quote:
Originally Posted by jlightner
"rsync -avz" preserves times, ownership etc...

"man rsync" will explain what the -a flag does (as well as all the other flags -a mentions).

You abandoned rsync due to errors but don't mind troubleshooting them in ncopy....
Yes... I expected that ncopy would be more suited to make backups on ncpfs... Am I wrong in thinking that?
Anyway, I could nevertheless give rsync another try. It worked well for me before when I made backups on a vfat filesystem, eventhough it didn't preserve permissions.

Cheers, Leon.
 
Old 05-04-2007, 08:34 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Sorry - missed that you were doing Novell. Haven't used ncopy and haven't done rsync for Novell filesystems so don't know that it works any better there than ncopy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
thunderbird puts time instead of date under 'date' header wabbalee Linux - Software 4 11-26-2006 04:58 AM
k3b - how to preserve owner and permission satimis Linux - Software 2 11-20-2006 08:07 PM
Start Date + Time Duration = End Date/Time calculator? ToBe Linux - General 3 09-26-2005 10:17 AM
Help - My Samba share changes the timestamp when copying files to it.. Preserve Time. hheejj Linux - Software 2 06-28-2005 09:34 AM
Heeelp! How to preserve file date modification attribute Slackovado Slackware 1 03-30-2005 09:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration