summaryrefslogtreecommitdiff
path: root/backup.c
AgeCommit message (Collapse)AuthorFilesLines
2009-04-10Fixed an ACL/xattr corruption issue where the --backup option could causeWayne Davison1-4/+28
rsync to associate the wrong ACL/xattr information with received files.
2009-03-03Make the backup code call unsafe_symlink() correctly.Wayne Davison1-1/+1
2009-01-17Update the copyright year.Wayne Davison1-1/+1
2008-05-22Fixed the backing up of a device or socket.Wayne Davison1-4/+2
2008-05-17Fixed an "else" in the device-making part of keep_backup().Wayne Davison1-2/+5
2008-05-17Fixed several issues with preserving xattrs when using --backup.Wayne Davison1-0/+3
2008-05-17Preserve the right errno value when trying adjunct functions duringWayne Davison1-19/+49
robust backup, copy, and renaming activities.
2008-03-01Include 2008 in the copyright years.Wayne Davison1-1/+1
2007-09-23Changed "statx" to "stat_x" to try to work around a build problem on AIX.Wayne Davison1-2/+2
2007-09-23Changed make_bak_dir() to take a const char *.Wayne Davison1-24/+23
2007-09-23Made make_bak_dir() global.Wayne Davison1-1/+1
2007-07-10Tweaking the license text a bit more.Wayne Davison1-2/+3
2007-07-07Switching to GPL 3.Wayne Davison1-3/+2
2007-04-24Need to call unmake_file() instead of free() on a file_struct.Wayne Davison1-1/+1
2007-04-24Adding the --fake-super option.Wayne Davison1-2/+2
2007-04-07The improved --xattrs option is landing on the trunk.Wayne Davison1-2/+23
2007-03-11The ACL support has arrived! This version has a brand new protocolWayne Davison1-8/+31
that makes it incompatible with all prior versions. A patch will be provided to allow talking with older (patched) rsync versions.
2007-02-04Further modifications to the copyright comment section.Wayne Davison1-4/+3
2006-12-07Use the new device defines: F_RDEV_P(), DEV_MAJOR(), and DEV_MINOR().Wayne Davison1-1/+2
2006-12-05Tweaked some externs.Wayne Davison1-2/+0
2006-12-03Moved an extern.Wayne Davison1-1/+1
2006-12-03- Typical tranfers now save 12-20 bytes per file because several varsWayne Davison1-16/+21
were moved out of file_struct into an optional member-var setup. - Renamed and reorganized the FLAG_* defines. - Use NDX_DONE instead of a literal -1 when sending/checking the end-of-phase index value.
2006-11-28Added some more "const" prefixes to some "char *" vars.Wayne Davison1-6/+6
2006-11-21The call to do_chmod() needed to be conditional.Wayne Davison1-0/+2
2006-04-25Updated the FSF's address to an even newer one.Wayne Davison1-3/+3
2006-04-25- Updated the address for the FSF in the opening comment.Wayne Davison1-18/+19
- Standardized the format of the opening comment, including adding a brief description of what's in the file for those that lacked it. - Added some missing copyright lines. - Some minor whitespace tweaks (in a few of the files).
2006-02-24Got rid of unused externs.Wayne Davison1-2/+0
2006-02-24Call mkdir_defmode() instead of do_mkdir().Wayne Davison1-3/+2
2006-01-30Call robust_rename() with its newly-added arg.Wayne Davison1-2/+3
2006-01-29Call the new name of set_perms(): set_file_attrs().Wayne Davison1-1/+1
2006-01-26Handle separated devices and special files.Wayne Davison1-1/+3
2006-01-20Call make_file() with one more arg (the base flags).Wayne Davison1-1/+1
2006-01-19Added a new arg to the make_file() call.Wayne Davison1-1/+1
2006-01-13Got rid of calls to (the soon to vanish) safe_fname() function.Wayne Davison1-8/+7
2005-11-10Indent the "failure:" label away from column 0.Wayne Davison1-1/+1
2005-06-10Fixed a problem in the backing up of symlinks and devices: weWayne Davison1-20/+21
need to remove any old symlink/device/file to create the backup. Also fixed a couple minor logic errors in the handling of symlinks and devices. NOTE: the code still doesn't handle the changing of a name from a dir to a non-dir or visa versa (which is a very old deficiency in the code).
2005-02-22In make_simple_backup(), if the rename() failed because we triedWayne Davison1-9/+23
to rename a directory over a file or visa versa, try to handle it.
2005-02-14John E. Malmberg convinced me to standardize on #ifs for definedWayne Davison1-1/+1
values instead of non-zero.
2005-02-07Adding more calls to safe_fname().Wayne Davison1-8/+12
2005-01-25Renamed several exclude-related functions/variables using newWayne Davison1-1/+1
filter terminology.
2005-01-19No need for conditional code around do_lstat() anymore.Wayne Davison1-6/+1
2004-10-01The device-handling code is no longer omitted based on HAVE_MKNODWayne Davison1-2/+0
(this is because do_mknod() might be using a different function to handle fifos and sockets without the help of mknod().
2004-09-20Output the same backup-message prefix when verbose > 1 regardless ofWayne Davison1-1/+1
the setting of --backup-dir.
2004-09-20Got rid of a superfluous static buffer.Wayne Davison1-5/+3
2004-09-07Moved the code that determines the backup filename into a new functionWayne Davison1-33/+43
named get_backup_name().
2004-09-07When we say we're skipping a non-regular file, actually skip it.Wayne Davison1-0/+1
2004-07-26Made a comment better.Wayne Davison1-1/+1
2004-07-22If we sucessfully renamed a file that has multiple links to it, unlink()Wayne Davison1-1/+6
it to ensure that rename() didn't lie to us (which it does if you try to rename() a file over another link to the same file).
2004-06-10The mkdir code should be using do_stat(), not do_lstat() to copyWayne Davison1-3/+5
each existing dir's mode & owner info.
2004-05-15Changed rprintf() calls that included strerror() to use rsyserr().Wayne Davison1-18/+18