# Find files older than 30 days whose filename contains 'backup' inside /path/to/folder
# and print their size in bytes
find /path/to/folder -name '*backup*' -mtime +30 -printf '%s\n' |
# ....then sum their values and print
nawk '{ T += $1 } END { print T }'
Hello everyone my ? is about backups. I'am running SCO OS 505 and currently backing up the hole HD. Well the back up is taking too long and this is becoming a problem for the users since we are a 24-7 bussines, I whant stop backing up every thing on the HD. What are the most important files and... (1 Reply)
I would like to create a script for calculating size and remaining space of a directory automatically every 24 hours, then send an email to report to the admin.
* POSIX and PERL are preferred.
Can anyone help, please? (1 Reply)
Hi,
Is there any way to calculate the size of a built in data type without using 'sizeof' operator? I also don't have the option to read it from std .h file.
regards
Apoorva Kumar (10 Replies)
hello dont know if this is the correct forum for this post but i have a question.
i am revising for a exam on operating systems and i have the question...
A system has a 32bit virtual address divided into 2kbyte pages and each entry in the page table is 6 bytes in length.
what is the size... (0 Replies)
Hi All,
I am very new to shell scripting. I have a text file which is the output of another utility. This text file has a list of SAF files which is basically a list of orphan attachments in the attachments directory. Now I want to read each file name from the file, get its size and repeat this... (6 Replies)
Hi
This is the lspv output of my server :
cbspsdb01 #lspv
hdisk0 00c7518d2d512fd4 cdgvg active
hdisk1 00c7518d2dcbc9d6 cdgvg active
hdisk2 00c7518dcda9199a appvg active
hdisk3... (1 Reply)
Hey guys.....
I have many files (lets say 100 or more) of same size, and I want to create a new output file and calculate the average of first row fifth column in all files and print it in first row of output file, then 2nd row fifth col in all 100 files and print it in 2nd row of output... (1 Reply)
Hi All,
I have the following time stamp data in 2 columns
Date TimeStamp(also with milliseconds)
05/23/2012 08:30:11.250
05/23/2012 08:30:15.500
05/23/2012 08:31.15.500
.
.
etc
From this data I need the following output.
0.00( row1-row1 in seconds)
04.25( row2-row1 in... (5 Replies)
hi everyone
i have posted this query but i dont where it has gone
i am posting again . my issue is that i have many backup files in a backup nfs share and i need to calculate it size just by adding their individual file sizes which is repetitive jobs. so is there any command or variation of du... (1 Reply)
Discussion started by: janakors
1 Replies
LEARN ABOUT DEBIAN
backup.d
BACKUP.D(5) backupninja package BACKUP.D(5)NAME
BACKUP.D - Action configuration files for backupninja(1).
SYNOPSIS
/etc/backup.d/*
DESCRIPTION
To preform the actual backup actions, backupninja processes each action configuration file in /etc/backup.d according to the file's suffix.
.sh run this file as a shell script.
.rdiff backup action for rdiff-backup.
.dup backup action for duplicity.
.maildir backup action for slow, incremental rsyncs of tens of thousands of maildirs.
.mysql backup action for safe MySQL dumps.
.pgsql backup action for safe PostgreSQL dumps.
.sys backup action for general system reports and hardware information.
.svn backup action for safe backups of subversion repositories.
.trac backup action for safe backups of trac repositories.
.makecd backup action for burning backups to CD/DVD or creating ISOs.
These files must be owned by root and must not be world or group readable/writable. Support for additional configuration types can be added
by dropping bash scripts with the name of the suffix into /usr/share/backupninja.
The configuration files are processed in alphabetical order. However, it is suggested that you name the config files in "sysvinit style."
For example:
10-local.pgsql.disabled
15-runthisfirst.sh
20-runthisnext.mysql
90-runthislast.rdiff
Typically, you will put a '.rdiff' config file last, so that any database dumps you make are included in the filesystem backup. Action con-
figurations which end with .disabled are skipped.
Example templates for the action configuration files can be found in /usr/share/doc/backupninja/examples. You can also use ninjahelper(1),
a console based "wizard" for creating backup actions.
SCHEDULING
By default, each configuration file is processed everyday at 01:00 (1 AM). This can be changed by specifying the 'when' option in a backup
action's config file or in the global configuration file. Special value 'manual' will disable scheduling for the backup action. It is pos-
sible to run the backup action manually by invoking ninjahelper(1) with --run command line argument.
For example:
when = sundays at 02:00
when = 30th at 22
when = 30 at 22:00
when = everyday at 01
when = Tuesday at 05:00
when = hourly
when = manual
These values for "when" are invalid:
when = tuesday at 2am
when = tuesday at 2
when = tues at 02
A configuration file will be processed at the time(s) specified by the "when" option. If multiple "when" options are present, then they all
apply. If two configurations files are scheduled to run in the same hour, then we fall back on the alphabetical ordering specified above.
The "when" must occur before any sections in the action configuration file.
FILE FORMAT
The file format of the action configuration files is "ini style." Sections are created by using square bracket. Long lines are connected
with a backslash. For example:
# this is a comment
[fishes]
fish = red
fish = blue
[fruit]
apple = yes
pear = no thanks
i will not have a pear.
SEE ALSO backupninja(1), ninjahelper(1), backupninja.conf(5),
AUTHOR
BACKUPNINJA was written by the riseup.net collective.
riseup October 10, 2005 BACKUP.D(5)