BackupPC.git
13 years agorename getUnits to getShares
Dobrica Pavlinusic [Thu, 17 Feb 2011 10:20:43 +0000 (11:20 +0100)]
rename getUnits to getShares

13 years agoskip negative inc_size backups
Dobrica Pavlinusic [Wed, 16 Feb 2011 18:46:15 +0000 (19:46 +0100)]
skip negative inc_size backups

13 years agoinvoke host_backup_nums directly
Dobrica Pavlinusic [Wed, 16 Feb 2011 17:58:21 +0000 (18:58 +0100)]
invoke host_backup_nums directly

13 years agopre-seed with on disk backups
Dobrica Pavlinusic [Wed, 16 Feb 2011 17:25:58 +0000 (18:25 +0100)]
pre-seed with on disk backups

13 years agoadded common BackupPC::Search::host_backup_nums
Dobrica Pavlinusic [Wed, 16 Feb 2011 17:07:43 +0000 (18:07 +0100)]
added common BackupPC::Search::host_backup_nums

This allows to have consistant view of available increments to archive in
web interface and through BackupPC_ASA_ArchiveStart helper.

13 years agodon't die without any hosts
Dobrica Pavlinusic [Wed, 16 Feb 2011 17:01:11 +0000 (18:01 +0100)]
don't die without any hosts

13 years agoMerge branch 'master' of git.rot13.org:/git/BackupPC
Dobrica Pavlinusic [Wed, 16 Feb 2011 15:12:39 +0000 (16:12 +0100)]
Merge branch 'master' of git.rot13.org:/git/BackupPC

Conflicts:
bin/BackupPC_ASA_PostArchive_Update

13 years agoall backup parts will be attached to first share in backups
Dobrica Pavlinusic [Wed, 16 Feb 2011 15:07:10 +0000 (16:07 +0100)]
all backup parts will be attached to first share in backups

13 years agoimport just increments which have files in them
Dobrica Pavlinusic [Wed, 9 Feb 2011 12:47:16 +0000 (13:47 +0100)]
import just increments which have files in them

13 years agoimport just increments which have files in them
Dobrica Pavlinusic [Wed, 9 Feb 2011 12:47:16 +0000 (13:47 +0100)]
import just increments which have files in them

13 years agofew more manual tests
Dobrica Pavlinusic [Wed, 9 Feb 2011 11:05:05 +0000 (12:05 +0100)]
few more manual tests

13 years agosort backup nums numerically to get correct order
Dobrica Pavlinusic [Wed, 9 Feb 2011 10:47:28 +0000 (10:47 +0000)]
sort backup nums numerically to get correct order

13 years agoLIMIT doesn't work since we don't get correct number of results search-3.2.0
Dobrica Pavlinusic [Mon, 7 Feb 2011 12:39:18 +0000 (12:39 +0000)]
LIMIT  doesn't work since we don't get correct number of results

13 years agoMerge branch 'search-3.2.0' of git.rot13.org:/git/BackupPC into search-3.2.0
Dobrica Pavlinusic [Mon, 7 Feb 2011 10:53:32 +0000 (10:53 +0000)]
Merge branch 'search-3.2.0' of git.rot13.org:/git/BackupPC into search-3.2.0

13 years agocorrectly lc $host all over the place
Dobrica Pavlinusic [Sun, 6 Feb 2011 12:27:07 +0000 (13:27 +0100)]
correctly lc $host all over the place

13 years agouse asa logo
Dobrica Pavlinusic [Sun, 6 Feb 2011 10:32:36 +0000 (11:32 +0100)]
use asa logo

13 years agodisable debug
Dobrica Pavlinusic [Sun, 6 Feb 2011 10:32:02 +0000 (11:32 +0100)]
disable debug

13 years agolowercase (lc) hostname to get increments
Dobrica Pavlinusic [Sun, 6 Feb 2011 10:31:20 +0000 (11:31 +0100)]
lowercase (lc) hostname to get increments

13 years ago_search_archive host config file for /etc/BackupPC/pc
Dobrica Pavlinusic [Fri, 4 Feb 2011 16:58:08 +0000 (16:58 +0000)]
_search_archive host config file for /etc/BackupPC/pc

13 years agoremove debug output to STDERR
Dobrica Pavlinusic [Tue, 1 Feb 2011 12:12:02 +0000 (13:12 +0100)]
remove debug output to STDERR

13 years agovisit minimum number of backups for only_increment
Dobrica Pavlinusic [Mon, 31 Jan 2011 15:04:06 +0000 (16:04 +0100)]
visit minimum number of backups for only_increment

we need two increment and full or two full backups to correctly detect changes

without this change every full backup was dumped with all content instead of increment

13 years agore-implement only_increment by comparing inodes
Dobrica Pavlinusic [Mon, 31 Jan 2011 13:14:33 +0000 (14:14 +0100)]
re-implement only_increment by comparing inodes

BackupPC history does that, and this also allows us to hide directories
which are same on previous increments.

13 years agoexpand and fix backups_burned view
Dobrica Pavlinusic [Sun, 30 Jan 2011 19:20:52 +0000 (20:20 +0100)]
expand and fix backups_burned view

13 years agotranfer xferOK to detect errors and run cleanup
Dobrica Pavlinusic [Sun, 30 Jan 2011 17:17:50 +0000 (18:17 +0100)]
tranfer xferOK to detect errors and run cleanup

this can be killall par2 or similar command or par dying on us

13 years agomake check_archive transactionally safe
Dobrica Pavlinusic [Sun, 30 Jan 2011 16:47:25 +0000 (17:47 +0100)]
make check_archive transactionally safe

13 years agofix sql filter for burned/pending
Dobrica Pavlinusic [Sun, 30 Jan 2011 16:01:23 +0000 (17:01 +0100)]
fix sql filter for burned/pending

13 years agouse DateTime::Duration to correctly convert partial dates in to fields
Dobrica Pavlinusic [Sun, 30 Jan 2011 13:38:44 +0000 (14:38 +0100)]
use DateTime::Duration to correctly convert partial dates in to fields

13 years agoarchive_backup renamed to archive_backup_parts
Dobrica Pavlinusic [Sun, 30 Jan 2011 13:07:10 +0000 (14:07 +0100)]
archive_backup renamed to archive_backup_parts

13 years agogit mv BackupPC_removeBurnedArchives BackupPC_ASA_removeBurnedArchives
Dobrica Pavlinusic [Sun, 30 Jan 2011 13:04:48 +0000 (14:04 +0100)]
git mv BackupPC_removeBurnedArchives BackupPC_ASA_removeBurnedArchives

13 years agoadded par2cmdline 0.4 with Intel Threading Building Blocks 2.2
Dobrica Pavlinusic [Sat, 29 Jan 2011 15:12:24 +0000 (16:12 +0100)]
added par2cmdline 0.4 with Intel Threading Building Blocks 2.2

13 years agomake md5sums read-only
Dobrica Pavlinusic [Sat, 29 Jan 2011 14:54:49 +0000 (15:54 +0100)]
make md5sums read-only

13 years agodocument ASA operation
Dobrica Pavlinusic [Sat, 29 Jan 2011 14:37:56 +0000 (15:37 +0100)]
document ASA operation

13 years agocorrectly support all command-line handling
Dobrica Pavlinusic [Sat, 29 Jan 2011 14:19:27 +0000 (15:19 +0100)]
correctly support all command-line handling

13 years agomake test target for archive testing
Dobrica Pavlinusic [Sat, 29 Jan 2011 13:50:07 +0000 (14:50 +0100)]
make test target for archive testing

13 years agoread protect tar dumps after md5sum calculation
Dobrica Pavlinusic [Sat, 29 Jan 2011 13:46:45 +0000 (14:46 +0100)]
read protect tar dumps after md5sum calculation

This allows operator errors in re-running dumps which have
archives allready created, and it seems that pigz produce
some amount of fuzzing in archive creation, so md5sums
of re-created archives don't match any more (which is bad
since we stored them in database for export to CD/DVD image)

13 years agodocument required global /etc/BackupPC/config.pl options
Dobrica Pavlinusic [Sat, 29 Jan 2011 13:07:02 +0000 (14:07 +0100)]
document required global /etc/BackupPC/config.pl options

13 years agouse same logic as CGI/Archive.pm
Dobrica Pavlinusic [Sat, 29 Jan 2011 13:02:51 +0000 (14:02 +0100)]
use same logic as CGI/Archive.pm

This will select increments which are not yet indexed, because archive will update
database and full-text search for them.

13 years agodon't start initial archive on make reset
Dobrica Pavlinusic [Sat, 29 Jan 2011 12:38:35 +0000 (13:38 +0100)]
don't start initial archive on make reset

13 years agofix example _search_archive.pl configuration
Dobrica Pavlinusic [Fri, 28 Jan 2011 23:02:42 +0000 (00:02 +0100)]
fix example _search_archive.pl configuration

13 years agoremove unused ArchiveChunkSize
Dobrica Pavlinusic [Fri, 28 Jan 2011 22:41:46 +0000 (23:41 +0100)]
remove unused ArchiveChunkSize

13 years agofix backup selection
Dobrica Pavlinusic [Fri, 28 Jan 2011 22:41:20 +0000 (23:41 +0100)]
fix backup selection

13 years agouse ArchiveSplit in Mb everywhere
Dobrica Pavlinusic [Fri, 28 Jan 2011 22:41:00 +0000 (23:41 +0100)]
use ArchiveSplit in Mb everywhere

13 years agoskip hosts without backups checked
Dobrica Pavlinusic [Fri, 28 Jan 2011 22:05:50 +0000 (23:05 +0100)]
skip hosts without backups checked

13 years agodisplay all backups which we don't know state of in web interface
Dobrica Pavlinusic [Fri, 28 Jan 2011 21:40:17 +0000 (22:40 +0100)]
display all backups which we don't know state of in web interface

13 years agoshow all increments without archived copy
Dobrica Pavlinusic [Fri, 28 Jan 2011 20:50:54 +0000 (21:50 +0100)]
show all increments without archived copy

This is mid-size change but it brings web interface in-sync with
default operation of BackupPC_ASA_ArchiveStart

13 years agohush debug output
Dobrica Pavlinusic [Fri, 28 Jan 2011 20:41:58 +0000 (21:41 +0100)]
hush debug output

13 years agofix order and burning is working again
Dobrica Pavlinusic [Fri, 28 Jan 2011 19:48:22 +0000 (20:48 +0100)]
fix order and burning is working again

13 years agoadded dvd_nr to archive_backup_parts
Dobrica Pavlinusic [Fri, 28 Jan 2011 19:05:52 +0000 (20:05 +0100)]
added dvd_nr to archive_backup_parts

13 years agoorder by backup_part_id
Dobrica Pavlinusic [Fri, 28 Jan 2011 19:00:54 +0000 (20:00 +0100)]
order by backup_part_id

13 years agoshow parts archived using view
Dobrica Pavlinusic [Fri, 28 Jan 2011 18:55:43 +0000 (19:55 +0100)]
show parts archived using view

13 years agocreate archive_backup_parts view and use it
Dobrica Pavlinusic [Fri, 28 Jan 2011 18:33:45 +0000 (19:33 +0100)]
create archive_backup_parts view and use it

13 years agomove sql schema in __DATA__
Dobrica Pavlinusic [Fri, 28 Jan 2011 17:58:36 +0000 (18:58 +0100)]
move sql schema in __DATA__

13 years agorun archive test on update
Dobrica Pavlinusic [Fri, 28 Jan 2011 17:58:29 +0000 (18:58 +0100)]
run archive test on update

13 years agotest BackupPC_ASA_ArchiveStart
Dobrica Pavlinusic [Fri, 28 Jan 2011 17:56:21 +0000 (18:56 +0100)]
test BackupPC_ASA_ArchiveStart

13 years agoremove broken tar increment implementation
Dobrica Pavlinusic [Fri, 28 Jan 2011 17:46:32 +0000 (18:46 +0100)]
remove broken tar increment implementation

this is left-over from port of previous version

13 years agoupdate SQL for new schema, cleanup
Dobrica Pavlinusic [Fri, 28 Jan 2011 17:45:28 +0000 (18:45 +0100)]
update SQL for new schema, cleanup

13 years agogit mv BackupPC_burnArchiveCLI BackupPC_ASA_BurnArchiveMedia
Dobrica Pavlinusic [Fri, 28 Jan 2011 16:57:30 +0000 (17:57 +0100)]
git mv BackupPC_burnArchiveCLI BackupPC_ASA_BurnArchiveMedia

13 years agoShow scheduled parts button
Dobrica Pavlinusic [Fri, 28 Jan 2011 16:55:40 +0000 (17:55 +0100)]
Show scheduled parts button

13 years agohide scheduled without option
Dobrica Pavlinusic [Fri, 28 Jan 2011 16:48:15 +0000 (17:48 +0100)]
hide scheduled without option

13 years agomove html and javascipt in __DATA__
Dobrica Pavlinusic [Fri, 28 Jan 2011 16:41:54 +0000 (17:41 +0100)]
move html and javascipt in __DATA__

13 years agoshow scheduled and burned columns
Dobrica Pavlinusic [Fri, 28 Jan 2011 16:29:42 +0000 (17:29 +0100)]
show scheduled and burned columns

13 years agosave selected backup_parts for burning
Dobrica Pavlinusic [Fri, 28 Jan 2011 15:55:37 +0000 (16:55 +0100)]
save selected backup_parts for burning

13 years agobegin rewrite to select backup_parts
Dobrica Pavlinusic [Fri, 28 Jan 2011 15:32:24 +0000 (16:32 +0100)]
begin rewrite to select backup_parts

13 years agostore filename in backup_parts
Dobrica Pavlinusic [Fri, 28 Jan 2011 14:24:38 +0000 (15:24 +0100)]
store filename in backup_parts

13 years agofix inc_size
Dobrica Pavlinusic [Fri, 28 Jan 2011 14:19:16 +0000 (15:19 +0100)]
fix inc_size

13 years agodocument new archive host ASA extension
Dobrica Pavlinusic [Fri, 28 Jan 2011 13:59:45 +0000 (14:59 +0100)]
document new archive host ASA extension

13 years agouse unit all over
Dobrica Pavlinusic [Fri, 28 Jan 2011 13:57:11 +0000 (14:57 +0100)]
use unit all over

13 years agoadded humanly readable unit (b k M G)
Dobrica Pavlinusic [Fri, 28 Jan 2011 13:48:14 +0000 (14:48 +0100)]
added humanly readable unit (b k M G)

13 years agoArchiveMediaSize and ArchiveChunkSize from _search_archive config
Dobrica Pavlinusic [Fri, 28 Jan 2011 13:18:51 +0000 (14:18 +0100)]
ArchiveMediaSize and ArchiveChunkSize from _search_archive config

13 years agorename MaxArchiveFileSize to ArchiveChunkSize
Dobrica Pavlinusic [Fri, 28 Jan 2011 12:50:33 +0000 (13:50 +0100)]
rename MaxArchiveFileSize to ArchiveChunkSize

grep -rl MaxArchiveFileSize . | xargs -i sh -cv "perl -p -i -n -e 's/MaxArchiveFileSize/ArchiveChunkSize/' {}"

13 years agorename MaxArchiveSize to ArchiveMediaSize
Dobrica Pavlinusic [Fri, 28 Jan 2011 12:49:18 +0000 (13:49 +0100)]
rename MaxArchiveSize to ArchiveMediaSize

grep -rl MaxArchiveSize . | xargs -i sh -cv "perl -p -i -n -e 's/MaxArchiveSize/ArchiveMediaSize/' {}"

13 years agoenable backup_parts triggers
Dobrica Pavlinusic [Fri, 28 Jan 2011 12:43:13 +0000 (13:43 +0100)]
enable backup_parts triggers

13 years agorespect ArchiveSplit when creating dumps
Dobrica Pavlinusic [Fri, 28 Jan 2011 12:42:56 +0000 (13:42 +0100)]
respect ArchiveSplit when creating dumps

13 years agodon't eval full-text update, it breaks our re-try logic
Dobrica Pavlinusic [Thu, 27 Jan 2011 23:58:40 +0000 (00:58 +0100)]
don't eval full-text update, it breaks our re-try logic

13 years agouse Getopt::Long::Descriptive
Dobrica Pavlinusic [Thu, 27 Jan 2011 23:36:52 +0000 (00:36 +0100)]
use Getopt::Long::Descriptive

13 years agofix
Dobrica Pavlinusic [Thu, 27 Jan 2011 23:14:06 +0000 (00:14 +0100)]
fix

13 years agofix warning about rollback
Dobrica Pavlinusic [Thu, 27 Jan 2011 23:13:49 +0000 (00:13 +0100)]
fix warning about rollback

13 years agopush host to archive so import and index update will be triggerd
Dobrica Pavlinusic [Thu, 27 Jan 2011 22:40:28 +0000 (23:40 +0100)]
push host to archive so import and index update will be triggerd

13 years agorenamed to only_increment
Dobrica Pavlinusic [Thu, 27 Jan 2011 22:34:29 +0000 (23:34 +0100)]
renamed to only_increment

This better describes functionality and is self-documenting
you can also add it to view ULRs on the web

13 years agofix only_first implementation to return only increment
Dobrica Pavlinusic [Thu, 27 Jan 2011 22:32:27 +0000 (23:32 +0100)]
fix only_first implementation to return only increment

13 years agoadded TarCreateIncremental config variable forced in archive host
Dobrica Pavlinusic [Thu, 27 Jan 2011 21:48:21 +0000 (22:48 +0100)]
added TarCreateIncremental config variable forced in archive host

13 years agostart indexing of dellboy after reset
Dobrica Pavlinusic [Thu, 27 Jan 2011 21:30:02 +0000 (22:30 +0100)]
start indexing of dellboy after reset

13 years agoshow status in ps output by modifing $0
Dobrica Pavlinusic [Thu, 27 Jan 2011 21:29:43 +0000 (22:29 +0100)]
show status in ps output by modifing $0

13 years agofix parsing of gzip -l output
Dobrica Pavlinusic [Thu, 27 Jan 2011 20:32:21 +0000 (21:32 +0100)]
fix parsing of gzip -l output

13 years agoif I can't find gzip size return original one
Dobrica Pavlinusic [Thu, 27 Jan 2011 20:07:05 +0000 (21:07 +0100)]
if I can't find gzip size return original one

13 years agorestart backuppc
Dobrica Pavlinusic [Thu, 27 Jan 2011 19:42:29 +0000 (20:42 +0100)]
restart backuppc

13 years agowithout params archive all hosts
Dobrica Pavlinusic [Thu, 27 Jan 2011 18:31:53 +0000 (18:31 +0000)]
without params archive all hosts

13 years agoremove archive history
Dobrica Pavlinusic [Thu, 27 Jan 2011 18:10:46 +0000 (18:10 +0000)]
remove archive history

13 years agoadded custom DumpPostFinishCmd command
Dobrica Pavlinusic [Thu, 27 Jan 2011 18:10:05 +0000 (18:10 +0000)]
added custom DumpPostFinishCmd command

we really need finished dump to start indexing it! so all other DumpPost
commands happen too early

13 years agouse Getopt::Long::Descriptive
Dobrica Pavlinusic [Thu, 27 Jan 2011 16:56:52 +0000 (16:56 +0000)]
use Getopt::Long::Descriptive

13 years agocreate all archives which are missing for given host
Dobrica Pavlinusic [Thu, 27 Jan 2011 15:55:52 +0000 (15:55 +0000)]
create all archives which are missing for given host

13 years agocleanup
Dobrica Pavlinusic [Thu, 27 Jan 2011 11:58:56 +0000 (11:58 +0000)]
cleanup

13 years agostore inc_size in backups rounded to 2k cluster
Dobrica Pavlinusic [Thu, 27 Jan 2011 11:28:26 +0000 (11:28 +0000)]
store inc_size in backups rounded to 2k cluster

13 years agofirst version which stores backup parts
Dobrica Pavlinusic [Thu, 27 Jan 2011 01:21:58 +0000 (01:21 +0000)]
first version which stores backup parts

but doesn't work with consistency triggers enabled

13 years agosupport hostList in quotes as -h option
Dobrica Pavlinusic [Thu, 27 Jan 2011 00:26:31 +0000 (00:26 +0000)]
support hostList in quotes as -h option

this speeds up pre-archive hook

13 years agofirst steps in importing archive data to RDBMS
Dobrica Pavlinusic [Thu, 27 Jan 2011 00:10:33 +0000 (00:10 +0000)]
first steps in importing archive data to RDBMS

13 years agorename to BackupPC_ASA_SearchUpdate
Dobrica Pavlinusic [Thu, 27 Jan 2011 00:10:20 +0000 (00:10 +0000)]
rename to BackupPC_ASA_SearchUpdate

13 years agogit mv BackupPC_ASA_PostDump_SearchUpdate BackupPC_ASA_SearchUpdate
Dobrica Pavlinusic [Wed, 26 Jan 2011 22:36:49 +0000 (22:36 +0000)]
git mv BackupPC_ASA_PostDump_SearchUpdate BackupPC_ASA_SearchUpdate

13 years agoarg parsing is only functional thing right now
Dobrica Pavlinusic [Wed, 26 Jan 2011 22:32:09 +0000 (22:32 +0000)]
arg parsing is only functional thing right now

13 years agosupport no dumps with -m 0
Dobrica Pavlinusic [Wed, 26 Jan 2011 22:25:36 +0000 (22:25 +0000)]
support no dumps with -m 0