RCS file: RCS/ftpsync,v Working file: ftpsync head: 1.80 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 80; selected revisions: 80 description: synchronise remote ftp server with local file system ---------------------------- revision 1.80 date: 2006/04/19 04:12:52; author: gilles; state: Exp; lines: +5 -5 Fixed --sizeonly behavior. ---------------------------- revision 1.79 date: 2006/04/19 01:51:31; author: gilles; state: Exp; lines: +7 -3 Added --sizeonly option. ---------------------------- revision 1.78 date: 2005/12/03 01:30:50; author: gilles; state: Exp; lines: +5 -4 Fixed --port option bug. ---------------------------- revision 1.77 date: 2005/07/28 23:11:12; author: gilles; state: Exp; lines: +15 -3 Applied Duncan Hill patch fixing not allow overwriting of files ---------------------------- revision 1.76 date: 2004/10/07 02:53:42; author: gilles; state: Exp; lines: +6 -4 Example how to avoid files begining with a "." ---------------------------- revision 1.75 date: 2004/10/07 02:40:50; author: gilles; state: Exp; lines: +5 -5 Updated statistic comment about files not transfered ---------------------------- revision 1.74 date: 2004/04/27 16:34:14; author: gilles; state: Exp; lines: +4 -3 Fixed sync_delete() no perl warning if regex does not match ---------------------------- revision 1.73 date: 2004/03/02 00:05:15; author: gilles; state: Exp; lines: +25 -19 Added --nostat option ---------------------------- revision 1.72 date: 2004/03/01 23:43:54; author: gilles; state: Exp; lines: +28 -12 Added stats about nb files transfered or not. ---------------------------- revision 1.71 date: 2004/03/01 22:33:36; author: gilles; state: Exp; lines: +5 -4 Updated OPTIONS pod ---------------------------- revision 1.70 date: 2004/03/01 22:28:43; author: gilles; state: Exp; lines: +9 -10 Updated BUGS section about bug clocks ---------------------------- revision 1.69 date: 2004/03/01 20:03:54; author: gilles; state: Exp; lines: +6 -6 Removed a debug print ---------------------------- revision 1.68 date: 2004/03/01 19:51:38; author: gilles; state: Exp; lines: +11 -8 Fixed space in filenames bug (regex with dir -a) ---------------------------- revision 1.67 date: 2004/01/26 02:04:08; author: gilles; state: Exp; lines: +35 -5 Added --excludellist option. ---------------------------- revision 1.66 date: 2003/06/30 23:16:51; author: gilles; state: Exp; lines: +4 -4 Fixed perl warning if remote file does not exist yet ---------------------------- revision 1.65 date: 2003/06/30 22:12:17; author: gilles; state: Exp; lines: +21 -18 - Added use of diff clock to check if transfert is needed. - Update the documentation about clock difference. ---------------------------- revision 1.64 date: 2003/06/27 04:41:46; author: gilles; state: Exp; lines: +36 -3 Added get_diff_clock() ---------------------------- revision 1.63 date: 2003/06/23 23:18:32; author: gilles; state: Exp; lines: +17 -7 Updated the doc to talk about clocks problems. ---------------------------- revision 1.62 date: 2003/03/07 14:30:29; author: gilles; state: Exp; lines: +5 -3 Added --delete --version in SYNOPSIS manual. ---------------------------- revision 1.61 date: 2003/03/06 21:11:14; author: gilles; state: Exp; lines: +4 -4 Added freshmeat url. ---------------------------- revision 1.60 date: 2003/03/06 20:42:37; author: gilles; state: Exp; lines: +14 -6 better indentation with while exemple ---------------------------- revision 1.59 date: 2003/03/06 15:33:54; author: gilles; state: Exp; lines: +4 -4 I did NOT test other tools. ---------------------------- revision 1.58 date: 2003/02/22 01:30:24; author: gilles; state: Exp; lines: +115 -9 Added --delete option. Delete files and directories on the remote host that have been deleted from the source directory. Added sync_delete() function to implement --delete option. ---------------------------- revision 1.57 date: 2003/02/15 11:02:48; author: gilles; state: Exp; lines: +5 -5 Removed die code "you should create it first". ---------------------------- revision 1.56 date: 2003/02/15 00:16:16; author: gilles; state: Exp; lines: +5 -3 Bug fix. Remove trailing / in SRC ---------------------------- revision 1.55 date: 2003/02/05 11:59:30; author: gilles; state: Exp; lines: +37 -8 Added example about --del option. Added comment about sym and hard links Added doc about exit status. Added doc section "SIMILAR SOFTWARES" ---------------------------- revision 1.54 date: 2003/02/04 21:27:26; author: gilles; state: Exp; lines: +5 -5 Die if passfile does not exist ---------------------------- revision 1.53 date: 2003/02/04 03:12:24; author: gilles; state: Exp; lines: +23 -23 CHANGED INTERFACE ! Now DEST/ content is updated from SOURCE/ content. Before DEST/SOURCE/ created. Be aware... ---------------------------- revision 1.52 date: 2003/02/02 18:05:32; author: gilles; state: Exp; lines: +40 -19 Better stats infos. Added bytes stats transferred. ---------------------------- revision 1.51 date: 2003/02/02 17:12:31; author: gilles; state: Exp; lines: +22 -22 Moved initialisation statistic variables. Added exit_status(). ---------------------------- revision 1.50 date: 2003/02/02 17:01:10; author: gilles; state: Exp; lines: +58 -41 Removed $poubdir code. useless. Added ftp_stats(). Print statistics about ftp put del mkdir rmdir. Renames variables about statistics. ---------------------------- revision 1.49 date: 2003/02/02 04:54:20; author: gilles; state: Exp; lines: +55 -38 Added statistics. Nb files updated, nb directories created and failures. ---------------------------- revision 1.48 date: 2003/02/02 02:34:00; author: gilles; state: Exp; lines: +45 -13 created dump_ftp() use of dump_ftp() in major ftp commands. use ok() to check put file. ---------------------------- revision 1.47 date: 2003/02/02 01:04:12; author: gilles; state: Exp; lines: +3 -51 removed unused retry_dir() and retry_file() ---------------------------- revision 1.46 date: 2003/02/01 14:14:47; author: gilles; state: Exp; lines: +31 -30 Nat patch. Better english than mine... ---------------------------- revision 1.45 date: 2003/01/31 16:19:13; author: gilles; state: Exp; lines: +4 -3 documentaed --norecursive option. ---------------------------- revision 1.44 date: 2003/01/31 15:35:17; author: gilles; state: Exp; lines: +21 -14 Added --recursive option. On by default. --norecursive allowed. ---------------------------- revision 1.43 date: 2003/01/31 13:17:03; author: gilles; state: Exp; lines: +13 -3 Updated documentation: "dir1/." special behavior. ---------------------------- revision 1.42 date: 2003/01/31 12:58:00; author: gilles; state: Exp; lines: +27 -23 Allow dest uri with just a host and no final / Better Indentation for get_options() ---------------------------- revision 1.41 date: 2003/01/31 11:38:39; author: gilles; state: Exp; lines: +8 -5 Added explanation for --pattern option. ---------------------------- revision 1.40 date: 2003/01/31 11:11:02; author: gilles; state: Exp; lines: +21 -20 Applied Nat patch. Nat corrected my bad english. ---------------------------- revision 1.39 date: 2003/01/22 23:11:53; author: gilles; state: Exp; lines: +4 -3 Added GPL copyleft in usage() ---------------------------- revision 1.38 date: 2003/01/22 23:06:55; author: gilles; state: Exp; lines: +24 -6 Updated DESCIPTION from freshmeat correction. ---------------------------- revision 1.37 date: 2003/01/21 02:22:47; author: gilles; state: Exp; lines: +4 -4 Corrected typo in pod ($0) ---------------------------- revision 1.36 date: 2003/01/21 02:08:29; author: gilles; state: Exp; lines: +7 -4 Updated NAME and DESCRIPTION pod sections. ---------------------------- revision 1.35 date: 2003/01/21 01:43:48; author: gilles; state: Exp; lines: +26 -20 Change the documentation. Redudency removed. ---------------------------- revision 1.34 date: 2003/01/21 01:24:58; author: gilles; state: Exp; lines: +3 -108 Removed RCS log lines. Too long. ---------------------------- revision 1.33 date: 2003/01/20 10:28:00; author: gilles; state: Exp; lines: +16 -5 Add BUGS section in pod documentation. Updated HISTORY section in pod documentation. ---------------------------- revision 1.32 date: 2003/01/18 03:22:44; author: gilles; state: Exp; lines: +15 -7 Source path can be any path now. Destination will not contain the source path. Works like mv cp now ! ---------------------------- revision 1.31 date: 2003/01/18 01:34:40; author: gilles; state: Exp; lines: +20 -10 Added --debugftp option. ---------------------------- revision 1.30 date: 2003/01/17 08:09:37; author: gilles; state: Exp; lines: +25 -14 Added HISTORY in pod doc ---------------------------- revision 1.29 date: 2003/01/17 07:52:20; author: gilles; state: Exp; lines: +9 -4 Corrected usage call when --help ---------------------------- revision 1.28 date: 2003/01/17 07:39:38; author: gilles; state: Exp; lines: +12 -7 Added dry in pod doc. Cleanup some print Added --help option. ---------------------------- revision 1.27 date: 2003/01/17 06:58:47; author: gilles; state: Exp; lines: +29 -11 Added cases remote is different than local. ---------------------------- revision 1.26 date: 2003/01/17 05:23:57; author: gilles; state: Exp; lines: +21 -15 Added dry mode in create_dir() Added dry mode in copy_file() ---------------------------- revision 1.25 date: 2003/01/17 04:55:05; author: gilles; state: Exp; lines: +33 -13 Added a dry mode for rmrf() (only). Changed rmrf() to allow removing a file Changed rmrf() to allow relative path. ---------------------------- revision 1.24 date: 2003/01/17 01:38:52; author: gilles; state: Exp; lines: +7 -4 Corrected defined() usage with an array. ---------------------------- revision 1.23 date: 2002/06/11 02:10:01; author: gilles; state: Exp; lines: +8 -4 pod ---------------------------- revision 1.22 date: 2002/06/11 02:06:21; author: gilles; state: Exp; lines: +6 -2 Added revision in pod ---------------------------- revision 1.21 date: 2002/06/11 02:04:45; author: gilles; state: Exp; lines: +6 -2 Corrected tag in pod ---------------------------- revision 1.20 date: 2002/06/11 02:02:27; author: gilles; state: Exp; lines: +5 -2 Added Id tag in pod ---------------------------- revision 1.19 date: 2002/06/11 01:57:26; author: gilles; state: Exp; lines: +13 -3 Added --version option ---------------------------- revision 1.18 date: 2002/06/11 01:39:15; author: gilles; state: Exp; lines: +12 -6 reformated pod doc ---------------------------- revision 1.17 date: 2002/06/11 01:23:57; author: gilles; state: Exp; lines: +17 -5 Updated pod doc ---------------------------- revision 1.16 date: 2002/06/11 01:15:53; author: gilles; state: Exp; lines: +11 -7 uri out of deltree stuff ---------------------------- revision 1.15 date: 2002/06/11 00:58:11; author: gilles; state: Exp; lines: +32 -6 Added uri in DEST ---------------------------- revision 1.14 date: 2002/06/10 23:30:09; author: gilles; state: Exp; lines: +33 -1 Started pod documentation ---------------------------- revision 1.13 date: 2002/06/10 20:13:11; author: gilles; state: Exp; lines: +19 -10 Removed options --dirdest --dirsrc SOURCE and DEST are args now ---------------------------- revision 1.12 date: 2002/06/10 18:45:49; author: gilles; state: Exp; lines: +31 -25 Indented rmrf() Made output in debug mode in rmrf() ---------------------------- revision 1.11 date: 2002/06/10 17:45:58; author: gilles; state: Exp; lines: +5 -2 dest default is "." ---------------------------- revision 1.10 date: 2002/06/10 17:44:34; author: gilles; state: Exp; lines: +28 -20 Wrote get_options() ---------------------------- revision 1.9 date: 2002/06/10 17:38:47; author: gilles; state: Exp; lines: +17 -10 Renamed $cwd with $dest Removed alias option --cwd ---------------------------- revision 1.8 date: 2002/06/10 17:35:13; author: gilles; state: Exp; lines: +135 -112 Splited wanted() Created create_dir() Created copy_file() Created retry_file() Created retry_dir() ---------------------------- revision 1.7 date: 2002/06/10 16:11:53; author: gilles; state: Exp; lines: +31 -21 Modified usage() output Added abort if unknown option given ---------------------------- revision 1.6 date: 2002/06/10 00:38:08; author: gilles; state: Exp; lines: +140 -102 Added --dirsrc option Alias option --dirdest is like --cwd Allow relative path in --dirsrc and --dirdest ---------------------------- revision 1.5 date: 2002/06/09 22:18:09; author: gilles; state: Exp; lines: +41 -11 Added option --passfile where the password can be if security needed ---------------------------- revision 1.4 date: 2002/06/09 21:18:45; author: gilles; state: Exp; lines: +5 -2 Added rcs Log tag ---------------------------- revision 1.3 date: 2002/02/22 00:06:37; author: gilles; state: Exp; lines: +4 -4 dir paths are absolute now ---------------------------- revision 1.2 date: 2000/07/31 04:15:53; author: gilles; state: Exp; lines: +96 -13 added --del option to remove remote directories added --poub option to move files that will be directories and directories that will be files ---------------------------- revision 1.1 date: 2000/07/30 23:00:38; author: gilles; state: Exp; Initial revision =============================================================================