I'd really been trying to do this without having to keep loads of historical text files laying about if I could (hence my focus on timestamps)...
This is a 20TB filesystem, about to scale up to 40TB in the next few months, so as I'm sure you can imagine, keeping the full text files of the listings each time could itself consume quite a bit of space. Especially if I squeeze the granularity down to daily.
But your suggestion seems to be the easiest way to get me started at least.
Thanks again... any other suggestions are of course welcome!
---------- Post updated at 03:51 PM ---------- Previous update was at 12:02 PM ----------
So, I've continued poking at this and I'm nearly at a solution which still involves the magical timestamps.
It's a bit of a hack, but it doesn't involve creating any extra files.
However I'm stuck at the final hurdle, it explodes horribly if the file names have spaces in them.... Any suggestions to get me to the final solution?
I'm writting a script to find the difference between two timestamp. One field i get on delivery time of the file like 07:17 AM and other is my SLA time 06:30 AM
I need to find the difference between these two time (time exceeded to meet SLA). Need some suggestions. (8 Replies)
Like the topic says, does anyone know if it is possible to check to see when an FTP only user has logged in? Because the shell is /bin/false and they are only using FTP to access the system doing a "finger" or "last" it says they have never logged in.
Is there a way to see when ftp users log in... (1 Reply)
Hello!
I have the following problem.
I read a file using perl, each line of this file has the fllowing format.
14/4/2008 8:42:03 πμ|10800|306973223399|4917622951117|1||1259|1|126|492|433||19774859454$
Th first field is the timestamp and the second field is the offset in seconds.
How can... (1 Reply)
Hi all,
currently , my root filesystem already reach 90 ++%
I already add more cylinder in the root partition as below
Part Tag Flag Cylinders Size Blocks
0 root wm 67 - 5086 38.46GB (5020/0/0) 80646300
1 swap wu 1 - ... (11 Replies)
Hi,
I wanted to find out that in my database server which filesystems are shared storage and which filesystems are local. Like when I use df -k, it shows "filesystem" and "mounted on" but I want to know which one is shared and which one is local.
Please tell me the commands which I can run... (2 Replies)
Hi guys!
Could you tell me what's the difference of filesystem of Solaris to filesystem of Windows? I need to compare both.
I have read some over the net but it's so much technical. Could you explain it in a more simpler term? I am new to Solaris. Hope you help me guys.
Thanks! (4 Replies)
Dear all,
We are facing prolem when we are going to mount AIX filesystem, the system returned the following error
0506-307The AFopen call failed
: A file or directory in the path name does not exist.
But when we ls filesystems in the /etc/ directory it show
-rw-r--r-- 0 root ... (2 Replies)
Hello fellow Unix geeks,
I have been given a very urgent assignment in my office on writing a particular Shell script but I'm very much new to it.I would appreciate any help from you on solving this problem--which might seem very trivial to you.
The Unix flavour is a Sun Solaris one..(not... (6 Replies)
So given filenames of varying lengths, I was wondering how I would remove or modify appended timestamps of the current date DD-MM-YY.
So say:
test_DD-MM-YY.txt
coolbeans_DD-MM-YY.pdf
And what I expect the output to be:
test.txt
coolbeans.pdf
Thanks :) (2 Replies)
hello
i'm using SOX to generate a spectrogram from a wave file with the command :
#sox file.wav -n spectrogram
is there a way to create a spectrogram using the same command but reading file timestamps instead of the namefile.wav , since name is changing every 4 hours? (it's saved with... (2 Replies)
Discussion started by: Board27
2 Replies
LEARN ABOUT DEBIAN
bup-index
bup-index(1) General Commands Manual bup-index(1)NAME
bup-index - print and/or update the bup filesystem index
SYNOPSIS
bup index <-p|-m|-s|-u> [-H] [-l] [-x] [--fake-valid] [--fake-invalid] [--check] [-f indexfile] [--exclude path] [--exclude-from filename]
[-v]
DESCRIPTION
bup index prints and/or updates the bup filesystem index, which is a cache of the filenames, attributes, and sha-1 hashes of each file and
directory in the filesystem. The bup index is similar in function to the git(1) index, and can be found in ~/.bup/bupindex.
Creating a backup in bup consists of two steps: updating the index with bup index, then actually backing up the files (or a subset of the
files) with bup save. The separation exists for these reasons:
1. There is more than one way to generate a list of files that need to be backed up. For example, you might want to use inotify(7) or dno-
tify(7).
2. Even if you back up files to multiple destinations (for added redundancy), the file names, attributes, and hashes will be the same each
time. Thus, you can save the trouble of repeatedly re-generating the list of files for each backup set.
3. You may want to use the data tracked by bup index for other purposes (such as speeding up other programs that need the same informa-
tion).
MODES -u, --update
recursively update the index for the given filenames and their descendants. One or more filenames must be given. If no mode option
is given, this is the default.
-p, --print
print the contents of the index. If filenames are given, shows the given entries and their descendants. If no filenames are given,
shows the entries starting at the current working directory (.) .
-m, --modified
prints only files which are marked as modified (ie. changed since the most recent backup) in the index. Implies -p.
-s, --status
prepend a status code (A, M, D, or space) before each filename. Implies -p. The codes mean, respectively, that a file is marked in
the index as added, modified, deleted, or unchanged since the last backup.
OPTIONS -H, --hash
for each file printed, prepend the most recently recorded hash code. The hash code is normally generated by bup save. For objects
which have not yet been backed up, the hash code will be 0000000000000000000000000000000000000000. Note that the hash code is
printed even if the file is known to be modified or deleted in the index (ie. the file on the filesystem no longer matches the
recorded hash). If this is a problem for you, use --status.
-l, --long
print more information about each file, in a similar format to the -l option to ls(1).
-x, --xdev, --one-file-system
don't cross filesystem boundaries when recursing through the filesystem. Only applicable if you're using -u.
--fake-valid
mark specified filenames as up-to-date even if they aren't. This can be useful for testing, or to avoid unnecessarily backing up
files that you know are boring.
--fake-invalid
mark specified filenames as not up-to-date, forcing the next "bup save" run to re-check their contents.
--check
carefully check index file integrity before and after updating. Mostly useful for automated tests.
-f, --indexfile=indexfile
use a different index filename instead of ~/.bup/bupindex.
--exclude=path
a path to exclude from the backup (can be used more than once)
--exclude-from=filename
a file that contains exclude paths (can be used more than once)
-v, --verbose
increase log output during update (can be used more than once). With one -v, print each directory as it is updated; with two -v,
print each file too.
EXAMPLE
bup index -vux /etc /var /usr
SEE ALSO bup-save(1), bup-drecurse(1), bup-on(1)BUP
Part of the bup(1) suite.
AUTHORS
Avery Pennarun <apenwarr@gmail.com>.
Bup unknown-bup-index(1)