aboutsummaryrefslogtreecommitdiffstats
path: root/backup.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Adding more calls to safe_fname().Wayne Davison2005-02-071-8/+12
|
* Renamed several exclude-related functions/variables using newWayne Davison2005-01-251-1/+1
| | | | filter terminology.
* No need for conditional code around do_lstat() anymore.Wayne Davison2005-01-191-6/+1
|
* The device-handling code is no longer omitted based on HAVE_MKNODWayne Davison2004-10-011-2/+0
| | | | | (this is because do_mknod() might be using a different function to handle fifos and sockets without the help of mknod().
* Output the same backup-message prefix when verbose > 1 regardless ofWayne Davison2004-09-201-1/+1
| | | | the setting of --backup-dir.
* Got rid of a superfluous static buffer.Wayne Davison2004-09-201-5/+3
|
* Moved the code that determines the backup filename into a new functionWayne Davison2004-09-071-33/+43
| | | | named get_backup_name().
* When we say we're skipping a non-regular file, actually skip it.Wayne Davison2004-09-071-0/+1
|
* Made a comment better.Wayne Davison2004-07-261-1/+1
|
* If we sucessfully renamed a file that has multiple links to it, unlink()Wayne Davison2004-07-221-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).
* The mkdir code should be using do_stat(), not do_lstat() to copyWayne Davison2004-06-101-3/+5
| | | | each existing dir's mode & owner info.
* Changed rprintf() calls that included strerror() to use rsyserr().Wayne Davison2004-05-151-18/+18
|
* Don't force the modtime on our backup dirs -- the dirs in theWayne Davison2004-05-131-1/+0
| | | | backup hierarchy should have their own timestamps.
* Calls to make_bak_dir() should only happen when we fail to create aWayne Davison2004-05-041-8/+14
| | | | file/dir/etc. with errno == ENOENT.
* Check robust_rename()'s return value using < 0.Wayne Davison2004-03-131-2/+2
|
* A couple fixes from Shinichi Maruyama.Wayne Davison2004-02-231-3/+3
|
* Moved the EXDEV handling into robust_rename().Wayne Davison2004-02-171-36/+4
|
* - Revised and optimized the directory-making code.Wayne Davison2004-02-111-98/+83
| | | | - Optimized the keep_backup() code.
* Got rid of hard-link message (since I don't think it was everWayne Davison2004-02-111-3/+0
| | | | output in older rsync versions).
* Simplified test for hardlink in make_backup debug message toJ.W. Schultz2004-02-101-5/+2
| | | | avoid core-dump.
* Make idev, hlink and file_struct + strings use allocationJ.W. Schultz2004-02-101-2/+3
| | | | pools.
* Changed args to make_file() and free_file().Wayne Davison2004-02-021-3/+2
|
* Changed F_HEAD to F_HLINDEX.Wayne Davison2004-01-251-1/+2
|
* Use new stringjoin() and pathjoin() functions.Wayne Davison2004-01-201-19/+16
|
* Changed the hard-link check.Wayne Davison2004-01-121-1/+2
|
* Use the new union-ified flist_struct values.Wayne Davison2004-01-111-5/+5
|
* A few formatting tweaks.Wayne Davison2004-01-051-61/+61
|
* Improved file-related error messages by using the newWayne Davison2003-09-111-12/+15
| | | | full_fname() function.
* Make extra backup dirs mode 0700, not 0755.Wayne Davison2003-08-221-1/+1
|
* Use the new backup_suffix_len and backup_dir_len variables. Got ridWayne Davison2003-08-011-15/+8
| | | | of the suffix_specified kludge.