SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
Local backup not copying, just hardlinki
Author Message
Post Local backup not copying, just hardlinki 
Hi Folks,

I am running rsnapshot 1.21 on OS X Tiger via the darwinport. I have
two drives and I am trying to setup rsnapshot to backup a few
directories in the first drive to the second one. It appears that
rsnapshot isn't actually making a master copy of the data on the second
drive to hardlink off of. Its just hardlinking from the first drive so
if I go delete a file from the first drive it disappears from the backup
dir. Below is a copy of my rsnapshot.conf, I would appreciate any help
you might be able to give me.

###########################
# SNAPSHOT ROOT DIRECTORY #
###########################
config_version 1.2

# All snapshots will be stored under this root directory.
snapshot_root /Volumes/mirror/backup/

# If no_create_root is enabled, rsnapshot will not automatically create the
# snapshot_root directory. This is particularly useful if you are backing
# up to removable media, such as a FireWire drive.
#
#no_create_root 1

#################################
# EXTERNAL PROGRAM DEPENDENCIES #
#################################

# LINUX USERS: Be sure to uncomment "cmd_cp". This gives you extra
features.
# EVERYONE ELSE: Leave "cmd_cp" commented out for compatibility.
#
# See the README file or the man page for more details.
#

###TURNED THESE OFF BECAUSE THERE WAS NO GNU CP

#cmd_cp /bin/cp

# uncomment this to use the rm program instead of the built-in perl routine
#cmd_rm /bin/rm

# rsync must be enabled for anything to work.
cmd_rsync /usr/bin/rsync

# Uncomment this to enable remote ssh backups over rsync.
#cmd_ssh /usr/bin/ssh

# Comment this out to disable syslog support.
cmd_logger /usr/bin/logger

#########################################
# BACKUP INTERVALS #
# Must be unique and in ascending order #
# i.e. hourly, daily, weekly, etc. #
#########################################

#interval hourly 1
interval daily 7
interval weekly 2
#interval monthly 3

############################################
# GLOBAL OPTIONS #
# All are optional, with sensible defaults #
############################################

# If your version of rsync supports --link-dest, you should enable this.
# This is the best way to support special files (FIFOs, etc) cross-platform.
# The default is 0 (off).
#
link_dest 1

# Verbose level, 1 through 5.
# 1 Quiet Print fatal errors only
# 2 Default Print errors and warnings only
# 3 Verbose Show equivalent shell commands being executed
# 4 Extra Verbose Show extra verbose information
# 5 Debug mode More than you care to know
#
verbose 3

# Same as "verbose" above, but controls the amount of data sent to the
# logfile, if one is being used. The default is 3.
loglevel 3

# If you enable this, data will be written to the file you specify. The
# amount of data written is controlled by the "loglevel" parameter.
logfile /var/log/rsnapshot

# The include and exclude parameters, if enabled, simply get passed directly
# to rsync. If you have multiple include/exclude patterns, put each one on a
# seperate line. Please look up the --include and --exclude options in the
# rsync man page for more details.
#
#include ???
#include ???
#exclude ???
#exclude ???

# The include_file and exclude_file parameters, if enabled, simply get
# passed directly to rsync. Please look up the --include-from and
# --exclude-from options in the rsync man page for more details.
#
#include_file /path/to/include/file
#exclude_file /path/to/exclude/file

# Default rsync args. All rsync commands have at least these options set.
#
#rsync_short_args -a
#rsync_long_args --delete --numeric-ids
#rsync_long_args --numeric-ids --delete --delete-excluded

# ssh has no args passed by default, but you can specify some here.
#
#ssh_args -p 22

# If this is enabled, rsync won't span filesystem partitions within a
# backup point. This essentially passes the -x option to rsync.
# The default is 0 (off).
#
#one_fs 0

# If you enable the lockfile, make sure the lockfile directory is
# not world writable. Otherwise anyone can prevent the program from running.
#
lockfile /var/run/rsnapshot

###############################
### BACKUP POINTS / SCRIPTS ###
###############################

backup /private/etc/ ./
backup /private/var/ ./
backup /Volumes/fuor/Users/ ./




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss

Post Local backup not copying, just hardlinki 
On Fri, Feb 10, 2006 at 02:25:06PM -1000, Nathan Huisman wrote:
Hi Folks,

I am running rsnapshot 1.21 on OS X Tiger via the darwinport. I have
two drives and I am trying to setup rsnapshot to backup a few
directories in the first drive to the second one. It appears that
rsnapshot isn't actually making a master copy of the data on the second
drive to hardlink off of. Its just hardlinking from the first drive so
if I go delete a file from the first drive it disappears from the backup
dir.

How odd. I've never seen a situation this.
I also don't understand how a file system using Unix semantics could
hard link between different filesystems (let alone different hard disks).
Or how deleting one hard link would affect another hard link.
(Changing the contents I could understand.)

Below is a copy of my rsnapshot.conf, I would appreciate any help
you might be able to give me.

# If no_create_root is enabled, rsnapshot will not automatically create the
# snapshot_root directory. This is particularly useful if you are backing
# up to removable media, such as a FireWire drive.
#
#no_create_root 1

Personally I would turn no_create_root on (after your first backup).
But it won't help with this problem.

# If your version of rsync supports --link-dest, you should enable this.
# This is the best way to support special files (FIFOs, etc) cross-platform.
# The default is 0 (off).
#
link_dest 1

If you don't get any better suggestions, you could try turning off
link_dest. I'm not sure whether turning it off would help, but it is
something you could experiment with, if you're into experimentation.

You could send some more information to the list, like the output
of these commands:
mount
df /private/etc /Volumes/mirror/backup/daily.0/private/etc
ls -li /private/etc/hosts
ls -li /Volumes/mirror/backup/daily.0/private/etc/hosts
tail -20 /var/log/rsnapshot

I'm assuming you have a file called /private/etc/hosts.
If not, please substitute some other regular file that exists.

___________________________________________________________________________
David Keegel <djk < at > cybersource.com.au> http://www.cyber.com.au/users/djk/
Cybersource P/L: Linux/Unix Systems Administration Consulting/Contracting


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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