Project

General

Profile

  • svn:executable: *

# Date Author Comment
13273 04/22/2014 03:04 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: upload(): always print the function and kw_params

13264 04/21/2014 07:38 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: db_copy() and callers: pass args as rsync options

13263 04/21/2014 07:28 PM Aaron Marcuse-Kubitza

fix: lib/sh/sync.sh: db_copy(): need to exclude files which prevent tape backup

13261 04/21/2014 07:17 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: db_snapshot(): copy changes before stopping DB to minimize the time that it's shut down

13260 04/21/2014 07:12 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: db_snapshot(): factored copy operation out into separate db_copy() function

13258 04/21/2014 07:02 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: added db_snapshot()

12955 03/28/2014 12:36 AM Aaron Marcuse-Kubitza

bugfix: lib/sh/sync.sh: don't unintentionally rsync-ignore explicitly-specified files

11970 01/20/2014 11:33 AM Aaron Marcuse-Kubitza

moved everything into /trunk/ to create the standard svn layout, for use with tools that require this (eg. git-svn). IMPORTANT: do NOT do an `svn up`. instead, re-use your working copy's existing files with `svn switch` (http://svnbook.red-bean.com/en/1.6/svn.ref.svn.c.switch.html).

10144 07/02/2013 05:42 PM Aaron Marcuse-Kubitza

bugfix: lib/sh/sync.sh: upload(): paths: don't dereference the path itself if it's a symlink; instead canonicalize just its parent dir. this allows syncing a specific file which is a symlink, rather than syncing the symlink's target.

10038 06/25/2013 03:46 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: upload(): .rsync_filter: also support machine-specific filters, for cases when different machines produce the same file (e.g. a log file) but only one machine's copy should be backed up

10030 06/25/2013 02:11 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: upload(): make put's $subpath option relative to the currdir instead, like the --include paths. note that $subpath unfortunately can't be used in subdirs at this point because it will cause rsync to ignore the .rsync_ignores and .rsync_filters in parent dirs, including the essential .rsync_ignore in the sync root dir.

10015 06/23/2013 09:30 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: upload(): documented that each --include path is relative to the currdir, not the root dir of the upload ($local_dir). this feature, although previously unintended, is actually better because the user can change to a subdir of the root dir and specify upload paths relative to the dir they are in. however, when invoking upload() from a script with --include paths specified, this means you need to use an absolute path (e.g. "$(dirname "${BASH_SOURCE0}")"/...; or the value that will become $local_dir, which for sync_upload() is $root_dir).

10013 06/23/2013 08:55 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: upload(): use directional .rsync_filter to supplement .rsync_ignore with all kinds of --filter rules. separate .rsync_filters are needed for the upload (swap=) and download (swap=1) directions because the sender and the receiver are reversed, causing asymmetric rules like protect/hide to change meaning.

10009 06/23/2013 03:52 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: upload(): usage: documented put's swap=1 flag, which downloads instead of uploads

10000 06/23/2013 03:34 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: upload(): use --exclude filters from per-dir .rsync_ignore. note that --exclude-from can't be used for this, because it is relative to the currdir, not the rsync root, and therefore also requires the .rsync_ignore to exist rather than using it only if it exists.

9894 06/12/2013 02:11 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: removed download(). use swap=1 upload, or swap=1 upload_caller, instead. this avoids having separate upload()/download() pairs for every caller of upload(), because you can instead just set swap=1.

9893 06/12/2013 01:50 PM Aaron Marcuse-Kubitza

bugfix: lib/sh/sync.sh: upload(): don't kw_params $swap because this unexports it, preventing put from seeing it. instead, use echo_vars to print it.

9890 06/12/2013 01:00 PM Aaron Marcuse-Kubitza

bugfix: lib/sh/sync.sh: upload(): only add `--exclude="**"` if there are --includes. this enables running upload() without paths to upload all files.

9889 06/12/2013 12:56 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: upload(): support passing -- options to put, which will not be run through the path->--include processing

9888 06/12/2013 12:55 PM Aaron Marcuse-Kubitza

bugfix: lib/sh/sync.sh: upload(): added missing `local args=()` initializer

9811 06/09/2013 08:28 PM Aaron Marcuse-Kubitza

bugfix: lib/sh/sync.sh: also need to --include parent dirs for each --include path

9805 06/09/2013 06:33 PM Aaron Marcuse-Kubitza

lib/sh/sync.sh: removed `pf upload` debug statement

9800 06/09/2013 06:26 PM Aaron Marcuse-Kubitza

added lib/sh/sync.sh with upload(), download()