I found it easier to think of replicating the directory tree, omitting the non-directory items, and then tarring up that tree:
producing on an existing example tree "a":
I ran this on a tree that had 60 MB in 280 directories, and it went too quickly for me to see anything except the last part of the list.
There may be other shorter methods as well ... cheers, drl
Dear Folks,
I have to backup pgsql database dump everynight on a routine. The database dump actually contains sql(text) statements. The actual size of the database dump is aroung 800 MB. Between two days backup, only few lines of statements are modified/added/deleted.
I dont want to do... (1 Reply)
Hi
I have a job that will be running nightly incremental backsup of a large directory tree.
I did the initial backup, now I want to write a script to verify that all the files were transferred correctly. I did something like this which works in principle on small trees:
diff -r -q... (6 Replies)
can someone give me a script to tar files that is older than 5 days in a directory that is not something like this:
fileArray=($(find -mtime +5 asdfasdf))
tar -cvf asfadfasdfa ${fileArray}
as the Unix I'm using has some problem with ($( )), I need another way to tar files in the folder.... (1 Reply)
I have constant trouble with XCOPY/s for multi-gigabyte transfers.
I need a utility like XCOPY/S that remembers where it left off if I reboot. Is there such a utility? How about a free utility (free as in free beer)?
How about an md5sum sanity check too?
I posted the above query in another... (3 Replies)
Find all files in the current directory only excluding hidden directories and files.
For the below command, though it's not deleting hidden files.. it is traversing through the hidden directories and listing normal which should be avoided.
`find . \( ! -name ".*" -prune \) -mtime +${n_days}... (7 Replies)
Hi
Can somebody please show me how to check from within a KSH script if a directory exists on that same host when parts of the directory tree are unknown?
If these wildcard dirs were the only dirs at that level then ...
RETCODE=$(ls -l /u01/app/oracle/local/*/* | grep target_dir) ... will... (4 Replies)
Hello.
I use this command :
rsync -av --include=".*" --dry-run "$A_FULL_PATH_S" "$A_FULL_PATH_D"The data comes from the output of a find command.
And no full source directories are in use, only some files.
Source example... (2 Replies)
Discussion started by: jcdole
2 Replies
LEARN ABOUT DEBIAN
bup-ls
bup-ls(1) General Commands Manual bup-ls(1)NAME
bup-ls - list the contents of a bup repository
SYNOPSIS
bup ls [-s] [-a]
DESCRIPTION
bup ls lists files and directories in your bup repository using the same directory hierarchy as they would have with bup-fuse(1).
The top level directory contains the branch (corresponding to the -n option in bup save), the next level is the date of the backup, and
subsequent levels correspond to files in the backup.
When bup ls is asked to output on a tty, it formats its output in columns so that it can list as much as possible in as few lines as possi-
ble. However, when bup ls is asked to output to something other than a tty (say you pipe the output to another command, or you redirect it
to a file), it will output one file name per line. This makes the listing easier to parse with external tools.
Note that bup ls doesn't show hidden files by default and one needs to use the -a option to show them. Files are hidden when their name
begins with a dot. For example, on the topmost level, the special directories named .commit and .tag are hidden directories.
Once you have identified the file you want using bup ls, you can view its contents using bup join or git show.
OPTIONS -s, --hash
show hash for each file/directory.
-a, --all
show hidden files.
EXAMPLE
bup ls /myserver/latest/etc/profile
bup ls -a /
SEE ALSO bup-join(1), bup-fuse(1), bup-ftp(1), bup-save(1), git-show(1)BUP
Part of the bup(1) suite.
AUTHORS
Avery Pennarun <apenwarr@gmail.com>.
Bup unknown-bup-ls(1)