i want to create a simple script to backup using rsync a folder on PC1
(suse 11) to PC2 (Windows XP) which can then be put into cron.hourly or
cron.daily.

The target folder is mounted by a fstab entry:-

Code:
--------------------

//192.168.1.226/backup /home/badger_fruit/lan/backup cifs username=badger_fruit,password=mypassword,auto,uid=badger_fruit,gid=users,_netdev 0 0

--------------------


By using the command ...

Code:
--------------------

rsync -avz /home/badger_fruit/data/photos/ /home/badger_fruit/lan/backup/

--------------------


... it creates the files/folders/subfolders etc as expected (hoorah)
BUT i get a message saying there was an error:-


Code:
--------------------

bgrsvr-y:/etc/cron.hourly # rsync -avz /home/badger_fruit/data/photos/ /home/badger_fruit/lan/backup/

sending incremental file list
./
rsync: failed to set times on "/home/badger_fruit/lan/backup/.": Permission denied (13)
Aquarium/
CapeVerde/
Christmas2008/
Computers/
GardenProject/
LoftProject/
Misc/
School Photos/

sent 4175 bytes received 47 bytes 8444.00 bytes/sec
total size is 41067045 speedup is 9726.92
rsync error: some files could not be transferred (code 23) at main.c(1031) [sender=3.0.2]
bgrsvr-y:/etc/cron.hourly #

--------------------


I have checked that "everyone" has "full control" on the Windows share
and that the folder is not in "read only" mode.

The username and password provided in the fstab are also correct, if i
do a manual cp, it will work without any such error.

Any ideas from anyone please?


--
badger_fruit
------------------------------------------------------------------------
badger_fruit's Profile: http://forums.opensuse.org/member.php?userid=2099
View this thread: http://forums.opensuse.org/showthread.php?t=401642