summaryrefslogtreecommitdiff
path: root/backup.c
Commit message (Collapse)AuthorAgeFilesLines
* Bump the year to 2014.Wayne Davison2014-01-261-1/+1
|
* Update copyright year.Wayne Davison2013-01-191-1/+1
|
* May as well use do_mkdir() directly these days.Wayne Davison2010-04-301-1/+1
|
* Minor restructuring/clarification to get_backup_name.Matt McCutchen2010-04-241-4/+4
| | | | (Tweaked by Wayne to follow his preferred style.)
* In "ignoring unsafe symlink" messages, show only the file-list path.Matt McCutchen2010-04-241-2/+2
| | | | | | | | Rsync was showing the full destination path, which was confusing because nothing is created at that path and was especially bogus in combination with the source name of a solo file. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506830
* Handle files that spring up while doing backup path checking.Wayne Davison2010-03-091-15/+37
|
* More backup improvements:Wayne Davison2009-04-111-155/+112
| | | | | | | | | | | | | | | - Changed get_backup_name() to verify the backup path, and make any missing directories. This avoids accidental use of a symlink as a dir in a backup path, and gets rid of any other non-dirs that are in the way. It also avoids the need for various operations to retry after calling make_bak_dir(), simplifying several pices of code. - Changed create_directory_path() to make_path(), giving it flags that lets the caller decide if it should skip a leading slash or drop the trailing filename. - Mention when we create the backup directory, so the user is not caught unaware when rsync uses a directory they didn't expect. - Got rid of some dir-moving backup code that is not used. - Added a little more backup-debug output.
* Fix "just in case" unlink. Prefer renaming of normal filesWayne Davison2009-04-111-5/+5
| | | | if hard-linking fails.
* Improved link_or_rename() to handle prefer_rename better.Wayne Davison2009-04-101-17/+12
|
* Fixed an ACL/xattr corruption issue where the --backup option could causeWayne Davison2009-04-101-4/+28
| | | | rsync to associate the wrong ACL/xattr information with received files.
* Make the backup code call unsafe_symlink() correctly.Wayne Davison2009-03-031-1/+1
|
* Improved the backup code:Wayne Davison2009-01-031-93/+84
| | | | | | | | - Backups do not interfere with an atomic update (when possible). - Backing up a file will remove a directory that is in the way and visa versa. - Unify the backup-dir and non-backup-dir code in backup.c. - Improved the backup tests a little bit.
* Update the copyright year.Wayne Davison2009-01-031-1/+1
|
* Added init_stat_x() to avoid duplication of acl/xattr init code.Wayne Davison2009-01-031-13/+4
|
* Added the --info=FLAGS an --debug=FLAGS options, which allowsWayne Davison2008-07-131-6/+5
| | | | fine-grained output control (in addition to the coarse -v).
* Fixed the backing up of a device or socket.Wayne Davison2008-05-221-4/+2
|
* Fixed an "else" in the device-making part of keep_backup().Wayne Davison2008-05-171-2/+5
|
* Fixed several issues with preserving xattrs when using --backup.Wayne Davison2008-05-171-0/+3
|
* Preserve the right errno value when trying adjunct functions duringWayne Davison2008-05-171-19/+49
| | | | robust backup, copy, and renaming activities.
* Include 2008 in the copyright years.Wayne Davison2008-03-011-1/+1
|
* Changed "statx" to "stat_x" to try to work around a build problem on AIX.Wayne Davison2007-09-231-2/+2
|
* Changed make_bak_dir() to take a const char *.Wayne Davison2007-09-231-24/+23
|
* Made make_bak_dir() global.Wayne Davison2007-09-231-1/+1
|
* Tweaking the license text a bit more.Wayne Davison2007-07-101-2/+3
|
* Switching to GPL 3.Wayne Davison2007-07-071-3/+2
|
* Need to call unmake_file() instead of free() on a file_struct.Wayne Davison2007-04-241-1/+1
|
* Adding the --fake-super option.Wayne Davison2007-04-241-2/+2
|
* The improved --xattrs option is landing on the trunk.Wayne Davison2007-04-071-2/+23
|
* The ACL support has arrived! This version has a brand new protocolWayne Davison2007-03-111-8/+31
| | | | | that makes it incompatible with all prior versions. A patch will be provided to allow talking with older (patched) rsync versions.
* Further modifications to the copyright comment section.Wayne Davison2007-02-041-4/+3
|
* Use the new device defines: F_RDEV_P(), DEV_MAJOR(), and DEV_MINOR().Wayne Davison2006-12-071-1/+2
|
* Tweaked some externs.Wayne Davison2006-12-051-2/+0
|
* Moved an extern.Wayne Davison2006-12-031-1/+1
|
* - Typical tranfers now save 12-20 bytes per file because several varsWayne Davison2006-12-031-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.
* Added some more "const" prefixes to some "char *" vars.Wayne Davison2006-11-281-6/+6
|
* The call to do_chmod() needed to be conditional.Wayne Davison2006-11-211-0/+2
|
* Updated the FSF's address to an even newer one.Wayne Davison2006-04-251-3/+3
|
* - Updated the address for the FSF in the opening comment.Wayne Davison2006-04-251-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).
* Got rid of unused externs.Wayne Davison2006-02-241-2/+0
|
* Call mkdir_defmode() instead of do_mkdir().Wayne Davison2006-02-241-3/+2
|
* Call robust_rename() with its newly-added arg.Wayne Davison2006-01-301-2/+3
|
* Call the new name of set_perms(): set_file_attrs().Wayne Davison2006-01-291-1/+1
|
* Handle separated devices and special files.Wayne Davison2006-01-261-1/+3
|
* Call make_file() with one more arg (the base flags).Wayne Davison2006-01-201-1/+1
|
* Added a new arg to the make_file() call.Wayne Davison2006-01-191-1/+1
|
* Got rid of calls to (the soon to vanish) safe_fname() function.Wayne Davison2006-01-131-8/+7
|
* Indent the "failure:" label away from column 0.Wayne Davison2005-11-101-1/+1
|
* Fixed a problem in the backing up of symlinks and devices: weWayne Davison2005-06-101-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).
* In make_simple_backup(), if the rename() failed because we triedWayne Davison2005-02-221-9/+23
| | | | to rename a directory over a file or visa versa, try to handle it.
* John E. Malmberg convinced me to standardize on #ifs for definedWayne Davison2005-02-141-1/+1
| | | | values instead of non-zero.