SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
backup_script and problem with cp
Author Message
Post backup_script and problem with cp 
Hello.

Using SUSE LINUX 10.0 - rsnapshot 1.2.1 - rsync 2.6.6

Can someone tell me why I'm getting the following error when
backing up a windows share using smbclient?

/bin/cp: target `/work/.snapshots/hourly.0/InfoServices/' is not a directory: No such file or directory
----------------------------------------------------------------------------
rsnapshot encountered an error! The program was invoked with these options:
/usr/local/bin/rsnapshot hourly
----------------------------------------------------------------------------
ERROR: /bin/cp failed. Perhaps this is not GNU cp?
ERROR: Warning! cp_al("/work/.snapshots/hourly.1/InfoServices/", "/work/.snapshots/hourly.0/InfoServices//")

The pertinent line in the script is:

/usr/bin/smbclient //${SERVER}/${SHARE} -A ${AUTHFILE} -Tc - mgrau 2>/dev/null | tar xf -

and works fine. My configuration:

config_version 1.2
snapshot_root /work/.snapshots/
cmd_cp /bin/cp
cmd_rm /bin/rm
cmd_rsync /usr/bin/rsync
cmd_ssh /usr/bin/ssh
cmd_logger /bin/logger
cmd_du /usr/bin/du
interval hourly 6
interval daily 7
interval weekly 4
link_dest 1
verbose 2
loglevel 3
logfile /var/log/rsnapshot
du_args -csh
backup /srv/www localhost/
backup_script /root/bin/InfoServices.sh InfoServices/
backup root < at > host1.domain:/srv/www/ host1.domain/
backup root < at > host1.domain:/etc/ host1.domain/
backup root < at > host1.domain:/root/bin/ host1.domain/
backup root < at > host2.domain:/opt/oracle/scripts/ host2.domain/
backup root < at > host2.domain:/orabu/ host2.domain/

Thanks
-- Mike


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post backup_script and problem with cp 
David Keegel wrote:
On Wed, May 24, 2006 at 10:58:42AM -0500, Mike Grau wrote:

Another answer would be to upgrade to rsnapshot 1.2.9, which should
no longer be using the trailing slashes with cp. Using gnu cp is
generally faster than using the perl code in rsnapshot to copy files,
so this would be a better long term answer.

Indeed, this fixed the problem. My thanks to all and my apologies if
my MTA inadvertently bounced anyone's reply.

-- Mike


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB