CPIO and Find Operation not permitted errors
Below is the oneliner that I am using to exclude all of "." hidden directories within the same directory.
Code:
cd ~ Code:
cd /media/caca/extract |
What mount options is /media/caca mounted with, what file system is it on and are you copying out and in as the same user?
|
Thanks for the response:
What mount options is /media/caca mounted with? Code:
//testbox/users/precious on /media/caca type cifs (rw,mand) Code:
//testbox/users/precious /media/caca cifs credentials=/home/daman/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0 Windows 2008 R2 using NTFS Are you copying out and in as the same user? YES, In my .smbcredential file I have to use my account name and password to access the share. This share is my home directory. This is an Ubuntu 10.04 box that I am mounting from to a Windows 2008 R2 domain controller Also one more question: What is the correct commandline substituion to add this as a variable using the Korn Shell? Code:
full_backup_dir=$(find . -depth \( -wholename \./\.\* \) -prune -o -print | cpio -oav > /media/caca/extract/full$date.cpio) Code:
$(find $home_dirs -mtime -1 | cpio -oa 2>/dev/null | ( cd $backup_dir && cpio -imd) |
The only thing I can think of is something like CIFS UNIX extensions. I haven't got a box to test it with let alone W2K8 R2 tho, maybe somebody else has?..
|
The good news is that I am only testing it using my home directory for testing but when I perfect my script I will be running it from linux and backing up to a mounted ext3 external backup NAS. I am still curious what it maybe. Thanks for the response
|
All times are GMT -5. The time now is 04:02 PM. |