summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2008-07-24 15:15:29 +0200
committerReinhard Tartler <siretart@tauware.de>2008-07-24 15:15:29 +0200
commit3673cf0fd1f41648bb4827f450f1e60e3db90517 (patch)
tree5a16185e537a25c0125af8d8e27c06583c87ca09
parent10d6afa627fdb302e720ce8d6514040d23d6342a (diff)
add packaging
-rw-r--r--debian/NEWS73
-rw-r--r--debian/README.Debian108
-rw-r--r--debian/bbackupctl.878
-rw-r--r--debian/bbackupd-config.878
-rw-r--r--debian/bbackupd.860
-rw-r--r--debian/bbackupquery.895
-rw-r--r--debian/bbstoreaccounts.869
-rw-r--r--debian/bbstored-certs.861
-rw-r--r--debian/bbstored-config.855
-rw-r--r--debian/bbstored.856
-rw-r--r--debian/boxbackup-client.config125
-rw-r--r--debian/boxbackup-client.cron.d2
-rw-r--r--debian/boxbackup-client.dirs5
-rw-r--r--debian/boxbackup-client.docs7
-rw-r--r--debian/boxbackup-client.init69
-rw-r--r--debian/boxbackup-client.install4
-rw-r--r--debian/boxbackup-client.manpages5
-rw-r--r--debian/boxbackup-client.postinst353
-rw-r--r--debian/boxbackup-client.postrm39
-rw-r--r--debian/boxbackup-client.templates137
-rw-r--r--debian/boxbackup-server.config110
-rw-r--r--debian/boxbackup-server.dirs6
-rw-r--r--debian/boxbackup-server.docs7
-rw-r--r--debian/boxbackup-server.init80
-rw-r--r--debian/boxbackup-server.install8
-rw-r--r--debian/boxbackup-server.logcheck.ignore10
-rw-r--r--debian/boxbackup-server.manpages5
-rw-r--r--debian/boxbackup-server.postinst215
-rw-r--r--debian/boxbackup-server.postrm44
-rw-r--r--debian/boxbackup-server.templates76
-rw-r--r--debian/changelog81
-rw-r--r--debian/compat1
-rw-r--r--debian/control29
-rw-r--r--debian/copyright48
-rw-r--r--debian/po/POTFILES.in2
-rw-r--r--debian/po/cs.po511
-rw-r--r--debian/po/fr.po525
-rw-r--r--debian/po/templates.pot416
-rw-r--r--debian/po/vi.po417
-rw-r--r--debian/raidfile-config.854
-rwxr-xr-xdebian/rules113
-rw-r--r--debian/watch2
42 files changed, 4239 insertions, 0 deletions
diff --git a/debian/NEWS b/debian/NEWS
new file mode 100644
index 00000000..11dadefa
--- /dev/null
+++ b/debian/NEWS
@@ -0,0 +1,73 @@
+boxbackup (0.11~rc1-1) unstable; urgency=low
+
+ The following notes have been copied from the boxbackup trac wiki at
+ http://www.boxbackup.org/trac/wiki/011?format=txt
+
+== Changes in This Release ==
+
+ * Fixed some bugs with backing up, restoring and comparing [#2 files over 2GB] in compressed size.
+ * Added new logging infrastructure, allows more control over whether messages are sent to the console or system logs, and at what level of detail.
+ * Changed keepalive and diff timers to run in real time, not CPU time.
+ * Enable KeepAlive time by default on new installations, set to 120 seconds.
+ * Added bbackupctl commands for improved scripting of syncs.
+ * Fixed a bug with restoring symlinks to directories outside of the backed-up location (thanks to Hans-Joachim Baader)
+ * Ported unit tests for Windows.
+ * Added full unit tests for keep-alives and diff timer on most platforms.
+ * Fixed a number of bugs in the Windows port.
+ * Added option to send Extended Logs to a file instead of to system logs.
+ * Added option to log all file access, for debugging when a file is not backed up or causes the backup to fail mysteriously.
+ * Improved error messages to identify the causes of some errors which were difficult to track down before.
+ * Added bbackupd option to set the length of time before unused locations are deleted.
+ * Changed default location of bbackupd.conf on Windows to the same directory as bbackupd.exe.
+ * Fixed a bug where bbstoreaccounts could modify an account while it was locked by a running backup.
+ * Improved command-line option handling.
+ * Added command-line help (-h option) to bbackupd and bbstored.
+ * Add a new -F option for daemons, which runs in the foreground but still accepts multiple connections, which is what SINGLEPROCESS used to do.
+ * Fixed compare of timestamps on filesystems which cannot set them more accurately than 1 second.
+ * Added new backup-start and backup-finish events to the NotifyScript, which can be used to implement more advanced functionality such as snapshotting databases.
+ * Added a new sample NotifySysAdmin script for Windows, written by James O'Gorman in VBscript.
+ * Added support for multiple Box Backup (bbackupd) services on Windows, with different service names and named pipe names, to implement redundancy.
+ * Fixed bbackupd mysteriously failing to back up if one of the location paths did not exist.
+ * Fixed entering of international characters into bbackupquery on Windows (instructions) and Unixes with editline.
+ * Improve Makefiles by reducing verbosity during build, so that any errors and warnings can be seen more easily.
+ * Added saving of the list of unused root directory entries to the StoreObjectInfoFile, so that they will persist across restarts of bbackup (thanks to Gary Niemcewicz).
+ * Updated built-in documentation (program manuals, installation guide and administrator's guide).
+ * Improved build targets (thanks to James O'Gorman).
+
+== Upgrading ==
+
+Upgrade all clients and servers to [wiki:010 0.10] first.
+
+Remove any Windows services before upgrading (with `bbackupd -r`) and reinstall after upgrading (with `bbackupd -i`).
+
+New logging options (LogAllFileAccess, ExtendedLogging and [wiki:ManualPages command-line options]) are useful but not required. To use LogAllFileAccess you need to start the daemon with the `-V` option as well.
+
+The protocol is the same, so it shouldn't require the store server to be updated at the same time as the clients, or even fix the order of updating them. We would recommend that you upgrade the store server first, and then the clients one at a time.
+
+You might want to either regenerate their configs, or look at the difference between a fresh config and their current one, to enable some useful options like KeepAliveTime (which is enabled by default in new installations) and to think about enabling StoreObjectInfoFile.
+
+Most syslog messages have changed their format, so any scripts which parse syslog will have to be updated.
+
+Anyone using SINGLEPROCESS in anger (e.g. to run bbstored as a managed service under daemontools or similar) should shoot themselves quietly in the foot and prepare to change it to '''-F''' after the upgrade. (this was never a documented option, and now behaves a little differently).
+
+If you have problems with large files (over 2GB compressed) not being backed up, restored or compared, you will need to delete them from the store server to fix them properly. You can do this before or after upgrading, but if they are uploaded again by the 0.10 client then the problem will not be solved.
+
+ -- Reinhard Tartler <siretart@tauware.de> Sun, 20 Jan 2008 21:13:08 +0100
+
+boxbackup (0.10-1) unstable; urgency=low
+
+This Package has been initially prepared and mantained by Jérôme Schell
+since 2004 in a private repository. I like the software, and decided to
+take it over in order to have it in Debian. Please note that I'm
+actively looking for co-maintainers, so do not hesitate to get a copy of
+my bzr branch and share your commits with me.
+
+The only major change has been to drop the boxbackup-utils package. It
+contained only one single command to manage certificates. It has been
+moved to the boxbackup-server package.
+
+The complete debconf integration has been written by Jérôme. It works
+for me quite well. If it doesn't for you, please file a bug and CC
+Jérôme to that bugreport. Thanks.
+
+ -- Reinhard Tartler <siretart@tauware.de> Wed, 25 Apr 2007 18:06:04 +0200
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 00000000..5ad55934
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,108 @@
+Quick setup guide for boxbackup system
+--------------------------------------
+
+NOTE: The debian package should handle most of the configuration
+for you via debconf.
+
+However this is a quick guide if you prefer to do this by
+yourself.
+
+If you want to use debconf to configure Boxbackup, do NOT follow
+those explanations. Jump directly to the section on Managing certificates
+
+Boxbackup-server configuration
+------------------------------
+
+You need to create the server configuration files contained in
+/etc/boxbackup.
+
+For this you must first use the raidfile-config script.
+
+raidfile-config /etc/boxbackup 2048 /raid/0.0 /raid/0.1 /raid/0.2
+
+where:
+- /etc/boxbackup is the location of the configuration files (don't
+ change that as several scripts use that by default)
+- 2048 is the block size of the RAID system, this should be set to
+ the block size of the underlying filesystem
+- the three following path names are the location of the 3 RAID partitions
+ used by boxbackup to store the backup. They should be on 3 different
+ physical drive. You can disable the use of userland RAID by specifying
+ only one path name.
+
+You should now have a file /etc/boxbackup/raidfile.conf that you can
+customize to add another set of disc.
+
+Now run the bbstored-config script:
+
+bbstored-config /etc/boxbackup serverhostname bbstored
+
+where:
+- /etc/boxbackup is the location of the configuration files (don't
+ change that as several scripts use that by default).
+- serverhostname is the fqdn name of the server you are installing on,
+ this is used to determine on wich interface the daemon will listen on.
+- bbstored is the user the server will run under, this user is automatically
+ created by the Debian package.
+
+Now you have to manage your certificate. See below for this.
+
+To manage the client accounts use the bbstoreaccounts utility.
+To add an account:
+bbstoreaccounts create ACCOUNT_NUMBER DISC_SET SOFT_QUOTA HARD_QUOTA
+
+where:
+- ACCOUNT_NUMBER is the account number to create, a 8 digits hexadecimal number.
+- DISC_SET is a disc set number defined in /etc/boxbackup/raidfile.conf where the
+ files for that account will go into.
+- SOFT_QUOTA is the soft storage quota size, the client will avoid to upload files
+ when reaching that limit
+- HARD_QUOTA is the hard storage quota size, the server will not store files when
+ reaching that limit.
+
+An exemple of invocation:
+bbstoreaccounts create 1EF235CA 0 1024M 1250M
+(suffixes M, G and B are accepted for quota size meaning respectively Megabytes,
+Gigabytes and Blocks)
+
+Boxbackup-client configuration
+------------------------------
+
+You need to create the client configuration files contained in
+/etc/boxbackup.
+
+For this you must use the bbackupd-config script.
+
+bbackupd-config /etc/boxbackup lazy ACCOUNT_NUMBER SERVER_NAME /var/lib/bbackupd BACKUP_DIR [[BACKUP_DIR]...]
+
+where:
+- /etc/boxbackup is the location of the configuration files (don't
+ change that as several scripts use that by default).
+- lazy: backup mode, could be lazy (continuous scan of filesystem) or
+ snapshot (backup launch by a cron script, see /etc/cron.d/boxbackup-client)
+- ACCOUT_NUMBER: your account number provided by the backup server administrator
+- SERVER_NAME is the fqdn name of the server you will connect to.
+- /var/lib/bbackupd: location of working directory (don't change)
+- BACKUP_DIR: a list of directories to backup (they must not contain another
+ mounted filesystem)
+
+
+Managing certificates
+---------------------
+
+For this you need to use the bbstored-certs script contained in the
+boxbackup-server package.
+
+To initialise your CA (creates a "ca" directory with private key and certificate in it) launch:
+bbstored-certs ca init
+
+To sign a server certificate:
+bbstored-certs ca sign-server server-csr.pem
+
+To sign a client certificate:
+bbstored-certs ca sign clientaccount-csr.pem
+
+You will find a more detailled documentation on the boxbackup Web site:
+http://www.fluffy.co.uk/boxbackup/
+
+ -- Reinhard Tartler <siretart@tauware.de>, Wed, 25 Apr 2007 18:04:01 +0200
diff --git a/debian/bbackupctl.8 b/debian/bbackupctl.8
new file mode 100644
index 00000000..6521f6a7
--- /dev/null
+++ b/debian/bbackupctl.8
@@ -0,0 +1,78 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH bbackupctl 8 "Oct 9, 2005"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+bbackupctl \- control command of the client daemon of the Box Backup system
+.SH SYNOPSIS
+.B bbackupctl
+.RI "[-q] [-c config_file] command"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B bbackupctl
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+\fbbbackupctl\fP can be used to send commands to the client daemon of the Box
+Backup system.
+.SH OPTIONS
+.TP
+.B -q
+Run in quiet mode. Reduce the output of the program.
+.TP
+.B -c config_file
+Use an alternate configuration file instead of the default one.
+.TP
+.B command
+.RS
+.TP
+.B sync
+Start the synchronization with the remote store. The goal is mainly to
+implement snapshot mode backup. When the daemon is configured to run is
+this mode, this command is used to launch the synchronization via a cron job.
+.TP
+.B force-sync
+Force the start of the synchronization with the remote store, even if
+the return value of the script indicated by the config file parameter
+SyncAllowScript says not to run the sync.
+.TP
+.B reload
+Tell the daemon to reload its configuration file.
+.TP
+.B terminate
+Terminate the daemon.
+.TP
+.B wait-for-sync
+Wait until the next synchronization start, then exit the command. With this you
+can obtain a synchronous backup, when the command exits you know that the
+remote store is in sync with your local data (be careful that recently
+modified files will not be immediatly uploaded to the store, see MinimumFileAge
+and MaxUploadWait config file parameters).
+.SH FILES
+.TP
+.I /etc/boxbackup/bbackupd.conf
+Default configuration file for bbackupctl.
+.SH SEE ALSO
+.BR bbackupd (8),
+.BR bbackupquery (8),
+.BR bbackupd-config (8).
+.br
+.SH AUTHOR
+This manual page was written by J\['e]r\[^o]me Schell <jerome@myreseau.org>
+(with the help of the online documentation located at
+http://www.fluffy.co.uk/boxbackup/)
+for the Debian GNU/Linux system (but may be used by others).
diff --git a/debian/bbackupd-config.8 b/debian/bbackupd-config.8
new file mode 100644
index 00000000..c4e58cf0
--- /dev/null
+++ b/debian/bbackupd-config.8
@@ -0,0 +1,78 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH bbackupd-config 8 "Oct 10, 2005"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+bbackupd-config \- utility to configure the client daemon of the Box Backup system
+.SH SYNOPSIS
+.B bbackupd-config
+.RI "config_file backup_mode account_number server_hostname working_directory backup_directory [backup_directory...]"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B bbackupd-config
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fbbbackupd-config\fP can be used to generate the configuration for the client daemon
+of the Box Backup system, bbackupd.
+.SH OPTIONS
+.TP
+.B config_file
+Location of the generated configuration. Generally /etc/boxbackup.
+.TP
+.B backup_mode
+The general behavior of the backup daemon:
+.RS
+.TP
+.B lazy
+In this mode the daemon will scan the backup directories at regular
+interval looking for modified files. Only files over a certain age will
+be uploaded to the remote store.
+.TP
+.B snapshot
+In this mode the daemon will upload a snapshot of the backup directories
+when it is told to do it. Manual or cron invocation via bbackupctl is
+necessary for backup to occur.
+.RE
+.TP
+.B account_number
+The hexadecimal number of the account you are configuring (provided by the
+remote server administrator).
+.TP
+.B server_hostname
+Name of the backup server hosting the remote store.
+.TP
+.B working_directory
+The directory containing management files of the client daemon. Generally /var/lib/bbackupd.
+.TP
+.B backup_directory
+Directory to backup. Multiple directories can be specified separated by white spaces. Be
+careful not to specify directories containing other mount points, this could affect
+the efficiency of the backup.
+.SH SEE ALSO
+.BR bbackupd (8),
+.BR bbackupctl (8),
+.BR bbackupquery (8).
+.br
+.SH AUTHOR
+This manual page was written by J\['e]r\[^o]me Schell <jerome@myreseau.org>
+(with the help of the online documentation located at
+http://www.fluffy.co.uk/boxbackup/)
+for the Debian GNU/Linux system (but may be used by others).
diff --git a/debian/bbackupd.8 b/debian/bbackupd.8
new file mode 100644
index 00000000..342fdf83
--- /dev/null
+++ b/debian/bbackupd.8
@@ -0,0 +1,60 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH bbackupd 8 "Oct 9, 2005"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+bbackupd \- client daemon of the Box Backup system
+.SH SYNOPSIS
+.B bbackupd
+.RI "config_file [SINGLEPROCESS]"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B bbackupd
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fbbbackupd\fP is the client daemon of the Box Backup system. It runs in
+the background, periodically scanning the file system looking for modified
+files. It then uploads them to the remote store according to parameters
+defined in its config file.
+.SH OPTIONS
+.TP
+.B config_file
+Path to the configuration file for bbackupd.
+.TP
+.B SINGLEPROCESS
+For test purpose only. Prevent the daemon to fork in the background and to detach from the terminal.
+.SH FILES
+.TP
+.I /etc/boxbackup/bbackupd.conf
+Default configuration file for bbackupd.
+.TP
+.I /var/lib/bbackupd
+Location of management files of the daemon.
+.SH SEE ALSO
+.BR bbackupctl (8),
+.BR bbackupquery (8),
+.BR bbackupd-config (8).
+.br
+.SH AUTHOR
+This manual page was written by J\['e]r\[^o]me Schell <jerome@myreseau.org>
+(with the help of the online documentation located at
+http://www.fluffy.co.uk/boxbackup/)
+for the Debian GNU/Linux system (but may be used by others).
diff --git a/debian/bbackupquery.8 b/debian/bbackupquery.8
new file mode 100644
index 00000000..167abde0
--- /dev/null
+++ b/debian/bbackupquery.8
@@ -0,0 +1,95 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH bbackupquery 8 "Oct 10, 2005"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+bbackupquery \- utility to execute queries on a remote Box Backup store
+.SH SYNOPSIS
+.B bbackupquery
+.RI "[-q] [-c config_file] [commands...]"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B bbackupquery
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fbbbackupquery\fP can be used to perform operation on a remote Box Backup
+store. It can naviguate through the remote store tree, list or retrieve last
+or old revisions of files and directories, get quota usage for the account
+and compare remote and local data.
+.SH OPTIONS
+.TP
+.B -q
+Run in quiet mode. Reduce the output of the program.
+.TP
+.B -c config_file
+Use an alternate configuration file instead of the default one.
+.TP
+.B commands
+Commands to run on the server. If no command is specified, bbackupquery
+will enter interactive mode where commands can be entered at the prompt.
+In interactive mode, issuing "help [command]" will display additionnal
+options supported by each command.
+.sp 1
+Available commands are:
+.RS
+.TP
+.B list, ls
+Display a listing of files and directories of the current working directory.
+.TP
+.B cd
+Change directory in the remote tree.
+.TP
+.B pwd
+Print current remote directory.
+.TP
+.B lcd
+Change directory in the local tree.
+.TP
+.B sh
+Execute a shell command on the local side.
+.TP
+.B get
+Retrieve a file from the store to the local filesystem.
+.TP
+.B restore
+Restore a directory from the remote store to the local filesystem.
+.TP
+.B compare
+Compare the remote current data with local data.
+.TP
+.B getobject
+For debuging purpose only. Retrieve an object from the store in its raw form.
+.TP
+.B usage
+Display usage statistics on the store for the current account.
+.TP
+.B quit
+Disconnect from the store and exit the program.
+.SH SEE ALSO
+.BR bbackupd (8),
+.BR bbackupd-config (8),
+.BR bbackupctl (8).
+.br
+.SH AUTHOR
+This manual page was written by J\['e]r\[^o]me Schell <jerome@myreseau.org>
+(with the help of the online documentation located at
+http://www.fluffy.co.uk/boxbackup/)
+for the Debian GNU/Linux system (but may be used by others).
diff --git a/debian/bbstoreaccounts.8 b/debian/bbstoreaccounts.8
new file mode 100644
index 00000000..21113548
--- /dev/null
+++ b/debian/bbstoreaccounts.8
@@ -0,0 +1,69 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH bbstoreaccounts 8 "Apr 15, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+bbstoreaccounts \- server daemon of the Box Backup system
+.SH SYNOPSIS
+.B bbstoreaccounts
+.RI "-c config_file [command] [command options]"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B bbstoreaccounts
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+\fbstoreaccounts\fP is a utility to create an account in your server
+setup. Please refer to
+http://bbdev.fluffy.co.uk/trac/wiki/CertificatesAndAccountsManagement
+for more verbose information about account management in the Box Backup
+system.
+.SH COMMANDS
+The available commands of \fbstoreaccounts\fP are presented here along
+with their arguments:
+.TP
+.B create [account number] [raid disc] [soft quota] [hard quota]
+Creates a new account on the server configuration. The account number
+has to be given in Hex (e.g. 75AB23C).
+.TP
+.B info [account number]
+Prints some information about the given account number
+.TP
+.B setlimit [account number] [new soft limit] [new hard limit]
+Adjust the limits for the given account.
+.TP
+.B delete [account]
+Deletes the given account.
+.TP
+.B check [account] fix
+Checks the database of the given account for consistency. Without the
+secound paramater \ffix\fP only warnings are printed.
+See http://bbdev.fluffy.co.uk/trac/wiki/FixingCorruption for more information
+about fixing consistency problems.
+.SH SEE ALSO
+.BR bbackupctl (8),
+.BR bbackupquery (8),
+.BR bbackupd-config (8),
+.BR bbstoreaccounts (8),
+.BR bbackupd (8).
+.br
+.SH AUTHOR
+This manual page was written by Reinhard Tartler <siretart@tauware.de>
+(with the help of the online documentation located at
+http://bbdev.fluffy.co.uk/trac/wiki/)
+for the Debian GNU/Linux system (but may be used by others).
+
diff --git a/debian/bbstored-certs.8 b/debian/bbstored-certs.8
new file mode 100644
index 00000000..dbbf7069
--- /dev/null
+++ b/debian/bbstored-certs.8
@@ -0,0 +1,61 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH bbstored 8 "Apr 15, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+bbstored-certs \- bbstored certificates utility.
+.SH SYNOPSIS
+.B bbstored-certs
+.RI "bbstored-certs certs-dir command [arguments]"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B bbstored-certs
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+\fbstored-certs\fP is a small utility for certificate management in the
+Box Backup System.
+.SH OPTIONS
+.TP
+.B certs-dir
+certs-dir is the directory holding the root keys and certificates for
+the backup system command is the action to perform, taking parameters.
+.SH COMMANDS
+.TP
+.B init
+generate initial root certificates (certs-dir must not already exist)
+.TP
+.B sign certificate-name
+sign a client certificate
+.TP
+.B sign-server certificate-name
+sign a server certificate
+.SH NOTES
+Signing requires confirmation that the certificate is correct and should
+be signed.
+.SH SEE ALSO
+.BR bbackupctl (8),
+.BR bbackupquery (8),
+.BR bbackupd-config (8),
+.BR bbackupd (8).
+.br
+.SH AUTHOR
+This manual page was written by Reinhard Tartler <siretart@tauware.de>
+(with the help of the online documentation located at
+http://bbdev.fluffy.co.uk/trac/wiki) for the Debian GNU/Linux system
+(but may be used by others).
+
diff --git a/debian/bbstored-config.8 b/debian/bbstored-config.8
new file mode 100644
index 00000000..42fa1503
--- /dev/null
+++ b/debian/bbstored-config.8
@@ -0,0 +1,55 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH bbstored-config 8 "Apr 15, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+bbstored-config \- utility to configure the server daemon of the Box Backup system
+.SH SYNOPSIS
+.B bbstored-config
+.RI "config-dir server-hostname username [raidfile-config]"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B bbstored-config
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+\fbbbstored-config\fP can be used to generate the configuration for the
+server daemon of the Box Backup system, bbackupd.
+.SH OPTIONS
+.TP
+.B config-dir
+usually /etc/boxbackup. You need to enter this literealy if you let
+debconf manage your boxbackup configuration.
+.TP
+.B server-hostname
+the hostname used by clients to connect to this server.
+.TP
+.B username
+the user to run the server under.
+.TP
+.B raidfile-config
+This is optional. Use if you have a non-standard raidfile.conf file.
+.SH SEE ALSO
+.BR bbackupd (8),
+.BR bbackupctl (8),
+.BR bbackupquery (8).
+.br
+.SH AUTHOR
+This manual page was written by Reinhard Tartler <siretart@tauware.de>
+(with the help of the online documentation located at
+http://bbdev.fluffy.co.uk/trac/wiki/)
+for the Debian GNU/Linux system (but may be used by others).
diff --git a/debian/bbstored.8 b/debian/bbstored.8
new file mode 100644
index 00000000..89d8ca49
--- /dev/null
+++ b/debian/bbstored.8
@@ -0,0 +1,56 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH bbstored 8 "Apr 15, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+bbstored \- server daemon of the Box Backup sysem
+.SH SYNOPSIS
+.B bbstored
+.RI "config_file [SINGLEPROCESS]"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B bbstored
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+\fbstored\fP is the server daemon of the Box Backup system. It runs
+in the background accepting connections from remote bbackupd clients.
+.SH OPTIONS
+.TP
+.B config_file
+Path to the configuration file for bbackupd.
+.TP
+.B SINGLEPROCESS
+For test purpose only. Prevent the daemon to fork in the background and to detach from the terminal.
+.SH FILES
+.TP
+.I /etc/boxbackup/bbstored.conf
+Default configuration file for bbstored.
+.SH SEE ALSO
+.BR bbackupctl (8),
+.BR bbackupquery (8),
+.BR bbackupd-config (8),
+.BR bbackupd (8).
+.br
+.SH AUTHOR
+This manual page was written by Reinhard Tartler <siretart@tauware.de>
+based on the bbackupd (8) manpage written by
+J\['e]r\[^o]me Schell <jerome@myreseau.org>
+(with the help of the online documentation located at
+http://www.fluffy.co.uk/boxbackup/)
+for the Debian GNU/Linux system (but may be used by others).
+
diff --git a/debian/boxbackup-client.config b/debian/boxbackup-client.config
new file mode 100644
index 00000000..f06ea78a
--- /dev/null
+++ b/debian/boxbackup-client.config
@@ -0,0 +1,125 @@
+#!/bin/bash -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+# This conf script is capable of backing up
+#db_version 2.0
+#db_capb backup
+
+#db_metaget debconf/priority value
+#CONFPRIO=$RET
+
+# Exit if debconf priority is above medium
+db_get debconf/priority
+
+if [ "$RET" = "high" -o "$RET" = "critical" ]; then
+ exit 0
+fi
+
+# Handle with debconf or not?
+db_input medium boxbackup-client/debconf || true
+db_go
+db_get boxbackup-client/debconf
+if [ "$RET" = "false" ]; then
+ exit 0
+fi
+
+# Backup mode
+db_get boxbackup-client/backupMode
+OLDMODE=$RET
+
+db_input medium boxbackup-client/backupMode || true
+db_go
+
+
+# accountNumber
+ANOK=0
+while [ $ANOK = 0 ]; do
+ db_input medium boxbackup-client/accountNumber || true
+ db_go
+
+ db_get boxbackup-client/accountNumber
+
+ if [ -z `echo $RET | sed 's/[[:xdigit:]]//g'` ]; then
+ ANOK=1
+ fi
+
+ if [ $ANOK = 0 ]; then
+ db_input critical boxbackup-client/incorrectAccountNumber || true
+ db_go
+ fi
+done
+
+# backupServer
+db_input medium boxbackup-client/backupServer || true
+db_go
+
+# backupDirs
+DIRSOK=0
+while [ $DIRSOK = 0 ]; do
+ db_input medium boxbackup-client/backupDirs || true
+ db_go
+
+ db_get boxbackup-client/backupDirs
+
+ if [ ! -z "$RET" ]; then
+ DIRSOK=1
+ for dir in $RET; do
+ if [ ! -z `echo $dir | sed 's/^[[:space:]]*\/[[:alnum:]\.\_-]*\/*\([[:alnum:]\.\_-]*\/*\)*[[:space:]]*$//g'` ]; then
+ DIRSOK=0;
+ fi
+ done
+ fi
+
+ if [ $DIRSOK = 0 ]; then
+ db_input critical boxbackup-client/incorrectDirectories || true
+ db_go
+ fi
+done
+
+# UpdateStoreInterval MinimumFileAge MaxUploadWait
+#db_get boxbackup-client/backupMode
+
+# This is a way to get back to the default values when switching the backup mode
+#if [ ! -z $OLDMODE ]; then
+# if [ $OLDMODE != $RET ]; then
+# db_set boxbackup-client/UpdateStoreInterval "3600"
+# db_set boxbackup-client/MinimumFileAge "21600"
+# db_set boxbackup-client/MaxUploadWait "86400"
+# fi
+#fi
+
+db_get boxbackup-client/backupMode
+if [ "$RET" = "lazy" ]; then
+ for param in UpdateStoreInterval MinimumFileAge MaxUploadWait; do
+ NUMOK=0
+ while [ $NUMOK = 0 ]; do
+ db_input low boxbackup-client/$param || true
+ db_go
+
+ db_get boxbackup-client/$param
+
+ if [ -z `echo $RET | sed 's/[[:digit:]]//g'` ]; then
+ NUMOK=1
+ fi
+
+ if [ $NUMOK = 0 ]; then
+ db_input critical boxbackup-client/IncorrectNumber || true
+ db_go
+ fi
+ done
+ done
+fi
+
+
+# NotifyMail
+db_input medium boxbackup-client/notifyMail || true
+db_go
+
+# x509 and private key
+db_input medium boxbackup-client/generateCertificate || true
+db_go
+
+exit 0
+
diff --git a/debian/boxbackup-client.cron.d b/debian/boxbackup-client.cron.d
new file mode 100644
index 00000000..486e4be3
--- /dev/null
+++ b/debian/boxbackup-client.cron.d
@@ -0,0 +1,2 @@
+# Launch the boxbackup client/server synchronization when in snapshot mode
+#0 0 * * * root /usr/sbin/bbackupctl -q sync
diff --git a/debian/boxbackup-client.dirs b/debian/boxbackup-client.dirs
new file mode 100644
index 00000000..96e786f8
--- /dev/null
+++ b/debian/boxbackup-client.dirs
@@ -0,0 +1,5 @@
+usr/sbin
+var/lib/bbackupd
+etc/boxbackup
+etc/boxbackup/bbackupd
+
diff --git a/debian/boxbackup-client.docs b/debian/boxbackup-client.docs
new file mode 100644
index 00000000..046afd06
--- /dev/null
+++ b/debian/boxbackup-client.docs
@@ -0,0 +1,7 @@
+BUGS.txt
+CONTACT.txt
+DOCUMENTATION.txt
+LINUX.txt
+NETBSD.txt
+THANKS.txt
+VERSION.txt
diff --git a/debian/boxbackup-client.init b/debian/boxbackup-client.init
new file mode 100644
index 00000000..905873fc
--- /dev/null
+++ b/debian/boxbackup-client.init
@@ -0,0 +1,69 @@
+#! /bin/sh
+#
+### BEGIN INIT INFO
+# Provides: boxbackup-server
+# Required-Start: $syslog $local_fs $network
+# Required-Stop: $syslog $local_fs $network
+# Default-Start: 2 3 4 5
+# Default-Stop: S 0 1 6
+# Short-Description: boxbackup client
+# Description: Init script to start and stop the boxbackup client
+### END INIT INFO
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/bbackupd
+NAME=bbackupd
+DESC=boxbackup-client
+CONF=/etc/boxbackup/bbackupd.conf
+
+test -f $DAEMON || exit 0
+
+test -f $CONF || exit 0
+
+PIDFILE=`grep 'PidFile' $CONF | sed 's/[[:space:]]*PidFile[[:space:]]*=[[:space:]]*\(\/[A-Za-z0-9/]*\)/\1/'`
+CERTFILE=`grep 'CertificateFile' $CONF | sed 's/[[:space:]]*CertificateFile[[:space:]]*=[[:space:]]*\(\/[A-Za-z0-9/]*\)/\1/'`
+ACCNUM=`grep 'AccountNumber' $CONF | sed 's/[[:space:]]*AccountNumber[[:space:]]*=[[:space:]]*\([A-Za-z0-9/]*\)/\1/'`
+
+[ -z $PIDFILE ] && PIDFILE="/var/run/bbackupd.pid"
+
+# Don't start if certificate file or account number are not present
+[ ! -e $CERTFILE -o -z $ACCNUM ] && exit 0
+
+set -e
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --exec $DAEMON -- $CONF
+ echo "$NAME."
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+ start-stop-daemon --oknodo --retry 5 --stop --quiet --pidfile $PIDFILE \
+ --exec $DAEMON
+ echo "$NAME."
+ ;;
+ reload|force-reload)
+ echo "Reloading $DESC configuration files."
+ start-stop-daemon --stop --signal 1 --quiet --pidfile \
+ $PIDFILE --exec $DAEMON -- $CONF
+ ;;
+ restart)
+ echo -n "Restarting $DESC: "
+ start-stop-daemon --oknodo --retry 5 --stop --quiet --pidfile \
+ $PIDFILE --exec $DAEMON
+ sleep 1
+ start-stop-daemon --start --quiet --pidfile \
+ $PIDFILE --exec $DAEMON -- $CONF
+ echo "$NAME."
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+ #echo "Usage: $N {start|stop|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/debian/boxbackup-client.install b/debian/boxbackup-client.install
new file mode 100644
index 00000000..859b5a49
--- /dev/null
+++ b/debian/boxbackup-client.install
@@ -0,0 +1,4 @@
+parcels/boxbackup-0.11rc1-backup-client-linux-gnu/bbackupd /usr/sbin/
+parcels/boxbackup-0.11rc1-backup-client-linux-gnu/bbackupctl /usr/sbin/
+parcels/boxbackup-0.11rc1-backup-client-linux-gnu/bbackupquery /usr/sbin/
+parcels/boxbackup-0.11rc1-backup-client-linux-gnu/bbackupd-config /usr/sbin/
diff --git a/debian/boxbackup-client.manpages b/debian/boxbackup-client.manpages
new file mode 100644
index 00000000..ba5cdeae
--- /dev/null
+++ b/debian/boxbackup-client.manpages
@@ -0,0 +1,5 @@
+debian/bbackupd.8
+debian/bbackupd-config.8
+debian/bbackupctl.8
+debian/bbackupquery.8
+
diff --git a/debian/boxbackup-client.postinst b/debian/boxbackup-client.postinst
new file mode 100644
index 00000000..220b2e78
--- /dev/null
+++ b/debian/boxbackup-client.postinst
@@ -0,0 +1,353 @@
+#! /bin/bash
+# postinst script for boxbackup-client
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+# quoting from the policy:
+# Any necessary prompting should almost always be confined to the
+# post-installation script, and should be protected with a conditional
+# so that unnecessary prompting doesn't happen if a package's
+# installation fails and the `postinst' is called with `abort-upgrade',
+# `abort-remove' or `abort-deconfigure'.
+
+#loading debconf module
+. /usr/share/debconf/confmodule
+
+CONFDIR=/etc/boxbackup
+DEBCONFBB=$CONFDIR/bbackupd.debconf
+BBCONF=$CONFDIR/bbackupd.conf
+BBKEY=$CONFDIR/bbackupd/boxbackup-client-encrypt-key.raw
+BBPRIVKEY=$CONFDIR/bbackupd/boxbackup-client-priv-key.pem
+BBCERTREQ=$CONFDIR/bbackupd/boxbackup-client-cert-req.pem
+BBCERT=$CONFDIR/bbackupd/boxbackup-client-cert.pem
+BBCACERT=$CONFDIR/bbackupd/boxbackup-server-ca-cert.pem
+DEBCONFNOTIFY=$CONFDIR/bbackupd/notifyadmin.debconf
+NOTIFYSCRIPT=$CONFDIR/bbackupd/notifyadmin
+
+case "$1" in
+ configure)
+ db_get boxbackup-client/debconf
+ if [ "$RET" = "true" ]; then
+ # Generate configuration files
+ # backupd.conf
+ echo "#To reconfigure boxbackup-client run #dpkg-reconfigure boxbackup-client" >> $DEBCONFBB
+
+ db_get boxbackup-client/backupServer
+ echo "StoreHostname = $RET" >> $DEBCONFBB
+
+ db_get boxbackup-client/accountNumber
+ ACCOUNT=$RET
+ echo "AccountNumber = 0x$ACCOUNT" >> $DEBCONFBB
+ echo "KeysFile = $BBKEY" >> $DEBCONFBB
+ echo "" >> $DEBCONFBB
+ echo "CertificateFile = $BBCERT" >> $DEBCONFBB
+ echo "PrivateKeyFile = $BBPRIVKEY" >> $DEBCONFBB
+ echo "TrustedCAsFile = $BBCACERT" >> $DEBCONFBB
+ echo "" >> $DEBCONFBB
+ echo "DataDirectory = /var/lib/bbackupd" >> $DEBCONFBB
+
+ cat >>$DEBCONFBB <<__EOF
+
+# This script is run whenever bbackupd encounters a problem which requires
+# the system administrator to assist:
+# 1) The store is full, and no more data can be uploaded.
+# 2) Some files or directories were not readable.
+# The default script emails the system administrator.
+NotifyScript = $NOTIFYSCRIPT
+
+__EOF
+
+ db_get boxbackup-client/backupMode
+ if [ "$RET" = "lazy" ]; then
+ db_get boxbackup-client/UpdateStoreInterval
+ UPDATE=$RET
+ [ -z $UPDATE ] && UPDATE="3600"
+
+ db_get boxbackup-client/MinimumFileAge
+ FILEAGE=$RET
+ [ -z $FILEAGE ] && FILEAGE="21600"
+
+ db_get boxbackup-client/MaxUploadWait
+ UPWAIT=$RET
+ [ -z $UPWAIT ] && UPWAIT="86400"
+
+ AUTO=yes
+ else
+ AUTO=no
+ UPDATE=0
+ FILEAGE=0
+ UPWAIT=0
+ fi
+
+ cat >>$DEBCONFBB <<__EOF
+# Backup mode specification
+# With snapshot mode, you will need to run bbackupctl to instruct the daemon to upload files.
+# Set to no for snapshot mode and yes for lazy mode
+AutomaticBackup = $AUTO
+
+# A scan of the local discs will be made once an hour (approximately).
+# To avoid cycles of load on the server, this time is randomly adjusted by a small
+# percentage as the daemon runs.
+# Defaults: 3600 for lazy mode - 0 for snapshot mode
+UpdateStoreInterval = $UPDATE
+
+# A file must have been modified at least 6 hours ago before it will be uploaded.
+# Defaults: 21600 for lazy mode - 0 for snapshot mode
+MinimumFileAge = $FILEAGE
+
+# If a file is modified repeated, it won't be uploaded immediately in case it's modified again.
+# However, it should be uploaded eventually. This is how long we should wait after first noticing
+# a change. (1 day)
+# Defaults: 86400 for lazy mode - 0 for snapshot mode
+MaxUploadWait = $UPWAIT
+
+# Files above this size (in bytes) are tracked, and if they are renamed they will simply be
+# renamed on the server, rather than being uploaded again. (64k - 1)
+FileTrackingSizeThreshold = 65535
+
+# The daemon does "changes only" uploads for files above this size (in bytes).
+# Files less than it are uploaded whole without this extra processing.
+DiffingUploadSizeThreshold = 8192
+
+# The limit on how much time is spent diffing files. Most files shouldn't take very long,
+# but if you have really big files you can use this to limit the time spent diffing them.
+# * Reduce if you are having problems with processor usage.
+# * Increase if you have large files, and think the upload of changes is too large and want
+# to spend more time searching for unchanged blocks.
+MaximumDiffingTime = 20
+
+# Uncomment this line to see exactly what the daemon is going when it's connected to the server.
+# ExtendedLogging = yes
+
+# Use this to temporarily stop bbackupd from syncronising or connecting to the store.
+# This specifies a program or script script which is run just before each sync, and ideally
+# the full path to the interpreter. It will be run as the same user bbackupd is running as,
+# usually root.
+# The script prints either "now" or a number to STDOUT (and a terminating newline, no quotes).
+# If the result was "now", then the sync will happen. If it's a number, then the script will
+# be asked again in that number of seconds.
+# For example, you could use this on a laptop to only backup when on a specific network.
+
+# SyncAllowScript = /path/to/intepreter/or/exe script-name parameters etc
+
+# Where the command socket is created in the filesystem.
+CommandSocket = /var/run/bbackupd.sock
+
+Server
+{
+ PidFile = /var/run/bbackupd.pid
+}
+
+#
+# BackupLocations specifies which locations on disc should be backed up. Each
+# directory is in the format
+#
+# name
+# {
+# Path = /path/of/directory
+# (optional exclude directives)
+# }
+#
+# 'name' is derived from the Path by the config script, but should merely be
+# unique.
+#
+# The exclude directives are of the form
+#
+# [Exclude|AlwaysInclude][File|Dir][|sRegex] = regex or full pathname
+#
+# (The regex suffix is shown as 'sRegex' to make File or Dir plural)
+#
+# For example:
+#
+# ExcludeDir = /home/guest-user
+# ExcludeFilesRegex = \.(mp3|MP3)$
+# AlwaysIncludeFile = /home/username/veryimportant.mp3
+#
+# This excludes the directory /home/guest-user from the backup along with all mp3
+# files, except one MP3 file in particular.
+#
+# In general, Exclude excludes a file or directory, unless the directory is
+# explicitly mentioned in a AlwaysInclude directive.
+#
+# If a directive ends in Regex, then it is a regular expression rather than a
+# explicit full pathname. See
+#
+# man 7 re_format
+#
+# for the regex syntax on your platform.
+#
+
+BackupLocations
+{
+__EOF
+
+ db_get boxbackup-client/backupDirs
+
+ for dir in $RET; do
+ NAME=`echo $dir | sed 's/\//-/g' | sed 's/^-//'`
+
+ # TODO : exclude encrypt key file from the backup
+
+ echo " $NAME" >> $DEBCONFBB
+ echo " {" >> $DEBCONFBB
+ echo " Path = $dir" >> $DEBCONFBB
+ echo " }" >> $DEBCONFBB
+ done
+
+ echo "}" >> $DEBCONFBB
+
+ # Encryption key
+ if [ ! -e $BBKEY ]; then
+ if ! openssl rand -out $BBKEY 1024 >&2; then
+ echo "Can't generate encryption key. Check why." >&2
+ fi
+ fi
+
+ chmod 600 $BBKEY || true
+
+ # SSL stuff
+ if [ ! -z $ACCOUNT ]; then
+ if [ ! -e $BBPRIVKEY -a ! -e $BBCERT ]; then
+ db_get boxbackup-client/generateCertificate
+
+ if [ "$RET" = "true" ]; then
+ if ! openssl genrsa -out $BBPRIVKEY 2048 >&2; then
+ echo "Private key generation failed! Check why." >&2
+ else
+ chmod 600 $BBPRIVKEY || true
+ fi
+
+
+ if ! openssl req -new -key $BBPRIVKEY -sha1 -out $BBCERTREQ >&2 <<__EOF
+.
+.
+.
+.
+.
+BACKUP-$ACCOUNT
+.
+.
+.
+__EOF
+ then
+ echo "Certificate request generation failed ! Check why." >&2
+ fi
+ fi
+ fi
+ fi
+
+ # Generate notify script
+ CLIENTNAME=`hostname --fqdn`
+
+ db_get boxbackup-client/notifyMail
+ MAILTO=$RET
+
+ cat >>$DEBCONFNOTIFY <<__EOF
+#!/bin/sh
+#To reconfigure boxbackup-client run #dpkg-reconfigure boxbackup-client
+SUBJECT="BACKUP PROBLEM on host $CLIENTNAME"
+SENDTO="$MAILTO"
+
+if [ \$1 = store-full ]
+then
+sendmail \$SENDTO <<EOM
+Subject: \$SUBJECT (store full)
+To: \$SENDTO
+
+
+The store account for $CLIENTNAME is full.
+
+=============================
+FILES ARE NOT BEING BACKED UP
+=============================
+
+Please adjust the limits on account $account_num on server $server.
+
+EOM
+elif [ \$1 = read-error ]
+then
+sendmail \$SENDTO <<EOM
+Subject: \$SUBJECT (read errors)
+To: \$SENDTO
+
+
+Errors occured reading some files or directories for backup on $CLIENTNAME.
+
+===================================
+THESE FILES ARE NOT BEING BACKED UP
+===================================
+
+Check the logs on $CLIENTNAME for the files and directories which caused
+these errors, and take appropraite action.
+
+Other files are being backed up.
+
+EOM
+else
+sendmail \$SENDTO <<EOM
+Subject: \$SUBJECT (unknown)
+To: \$SENDTO
+
+
+The backup daemon on $CLIENTNAME reported an unknown error.
+
+==========================
+FILES MAY NOT BE BACKED UP
+==========================
+
+Please check the logs on $CLIENTNAME.
+
+EOM
+fi
+__EOF
+
+ db_stop
+
+ if [ -x /usr/bin/ucf ]; then
+ /usr/bin/ucf --three-way $DEBCONFBB $BBCONF >&2 </dev/tty
+ fi
+ rm -f $DEBCONFBB
+ chmod 644 $BBCONF || true
+ chown root:root $BBCONF || true
+
+ if [ -x /usr/bin/ucf ]; then
+ /usr/bin/ucf --three-way $DEBCONFNOTIFY $NOTIFYSCRIPT >&2 </dev/tty
+ fi
+ rm -f $DEBCONFNOTIFY
+ chmod 755 $NOTIFYSCRIPT || true
+ chown root:root $NOTIFYSCRIPT || true
+ else
+ db_stop
+ fi
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ db_stop
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ db_stop
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/boxbackup-client.postrm b/debian/boxbackup-client.postrm
new file mode 100644
index 00000000..07ec26b4
--- /dev/null
+++ b/debian/boxbackup-client.postrm
@@ -0,0 +1,39 @@
+#! /bin/sh
+# postrm script for boxbackup-client
+#
+# see: dh_installdeb(1)
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# for details, see /usr/share/doc/packaging-manual/
+
+set -e
+
+
+case "$1" in
+ purge)
+ for i in /etc/boxbackup/bbackupd.conf /etc/boxbackup/bbackupd/notifyadmin; do
+ if [ -e $i ]; then
+ rm -f $i
+ fi
+ ucf -p $i
+ done
+ ;;
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 0
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
diff --git a/debian/boxbackup-client.templates b/debian/boxbackup-client.templates
new file mode 100644
index 00000000..297d0a2a
--- /dev/null
+++ b/debian/boxbackup-client.templates
@@ -0,0 +1,137 @@
+# These templates have been reviewed by the debian-l10n-english
+# team
+#
+# If modifications/additions/rewording are needed, please ask
+# for an advice to debian-l10n-english@lists.debian.org
+#
+# Even minor modifications require translation updates and such
+# changes should be coordinated with translators and reviewers.
+
+Template: boxbackup-client/debconf
+Type: boolean
+Default: true
+_Description: Should the BoxBackup client be configured automatically?
+ The package configuration scripts can create the configuration files
+ for the BoxBackup client.
+ .
+ You should choose this option if you are not familiar with BoxBackup's
+ configuration options.
+ .
+ Please read the /usr/share/doc/boxbackup-client/README.Debian for details
+ about the configuration of the BoxBackup client.
+
+Template: boxbackup-client/backupMode
+Type: select
+Choices: lazy, snapshot
+#flag:comment:3
+# Translators, please keep reference to 'lazy' and 'snapshot' as
+# these options are written as is in the software documentation
+_Description: Run mode for the BoxBackup client:
+ The BoxBackup client supports two modes of backup:
+ .
+ In the 'lazy' mode, the backup daemon will regularly scan the file system
+ searching for modified files. It will then upload the files older than a
+ specified age to the backup server.
+ .
+ In the 'snapshot' mode the backup will be explicitly run at regular intervals.
+ A cron file (/etc/cron.d/boxbackup-client) is provided with the
+ package and should be adapted to suit your needs.
+
+Template: boxbackup-client/accountNumber
+Type: string
+_Description: Account number for this node on the backup server:
+ The administrator of the BoxBackup server should have assigned this client
+ a hexadecimal account number.
+ .
+ If no account number has been assigned yet, leave this field blank and
+ configure it later by running 'dpkg-reconfigure boxbackup-client' as root.
+
+Template: boxbackup-client/incorrectAccountNumber
+Type: error
+_Description: Invalid account number
+ The account number must be a hexadecimal number (such as 1F04 or 4500).
+
+Template: boxbackup-client/backupServer
+Type: string
+_Description: Fully qualified domain name of the backup server:
+ Please enter the fully qualified domain name of the BoxBackup server which
+ your client will use.
+ .
+ The client will connect to the server on TCP port 2201.
+
+Template: boxbackup-client/backupDirs
+Type: string
+_Description: List of directories to backup:
+ Please give a space-separated list of directories to be backed up onto
+ the remote server.
+ .
+ Those directories should not contain mounted file systems at any level
+ in their subdirectories.
+
+Template: boxbackup-client/incorrectDirectories
+Type: error
+_Description: Invalid path name
+ The path names to the directories must be absolute path names, separated
+ by spaces.
+ .
+ For example: /home/myaccount /etc/
+
+Template: boxbackup-client/UpdateStoreInterval
+Type: string
+Default: 3600
+_Description: Interval (in seconds) between directory scans:
+ BoxBackup regularly scans the selected directories, looking for modified
+ files.
+ .
+ Please choose the scan interval in seconds.
+
+Template: boxbackup-client/MinimumFileAge
+Type: string
+Default: 21600
+_Description: Minimum time to wait (in seconds) before uploading a file:
+ A file will be uploaded to the server only after a certain time after its
+ last modification.
+ .
+ Low interval values will trigger frequent uploads to the server and more
+ revisions being created with older revisions being removed earlier.
+
+Template: boxbackup-client/MaxUploadWait
+Type: string
+Default: 86400
+_Description: Maximum time to wait (in seconds) before uploading a file:
+ Frequently modified files are likely to never get uploaded if they
+ never reach the minimum wait time.
+ .
+ Please enter the maximum time to reach before the upload of a modified
+ file to the server is enforced.
+
+Template: boxbackup-client/IncorrectNumber
+Type: error
+_Description: Invalid time entered
+ Please enter a non null integer value.
+
+Template: boxbackup-client/notifyMail
+Type: string
+Default: root
+_Description: Recipient for alert notifications:
+ The BoxBackup client sends alert notifications when a problem occurs
+ during the backup.
+ .
+ Please enter either a local user name (for example 'root') or an email
+ address (for example 'admin@example.org').
+
+Template: boxbackup-client/generateCertificate
+Type: boolean
+Default: true
+_Description: Generate the client private key and X.509 certificate request?
+ The BoxBackup client needs an RSA private key and the corresponding X.509
+ certificate to authenticate itself with the server.
+ .
+ Both can be generated automatically. You will need to send the
+ certificate request to the BoxBackup server administrator who will
+ sign it and send it back to you along with the server's Certification
+ Authority certificate.
+ .
+ These files should be copied into BoxBackup's configuration
+ directory. The file names to use are given in the
+ /etc/boxbackup/bbackupd.conf file.
diff --git a/debian/boxbackup-server.config b/debian/boxbackup-server.config
new file mode 100644
index 00000000..d0ed5a6f
--- /dev/null
+++ b/debian/boxbackup-server.config
@@ -0,0 +1,110 @@
+#!/bin/bash -e
+
+# Source debconf library
+. /usr/share/debconf/confmodule
+
+# This conf script is capable of backing up
+#db_version 2.0
+#db_capb backup
+
+#db_metaget debconf/priority value
+#CONFPRIO=$RET
+
+# Handle with debconf or not?
+db_input medium boxbackup-server/debconf || true
+db_go
+db_get boxbackup-server/debconf
+if [ "$RET" = "false" ]; then
+ exit 0
+fi
+
+# RAID directories
+db_get boxbackup-server/raidDirectories
+OLDRAIDDIR=$RET
+RAIDOK=0
+while [ $RAIDOK = 0 ]; do
+ db_input medium boxbackup-server/raidDirectories || true
+ db_go
+
+ db_get boxbackup-server/raidDirectories
+
+ DIR1=`echo "$RET" | awk '{ print $1 }'`
+ DIR2=`echo "$RET" | awk '{ print $2 }'`
+ DIR3=`echo "$RET" | awk '{ print $3 }'`
+
+ if [ -n $DIR1 ]; then
+ if [ -z $DIR2 -o -z $DIR3 ]; then
+ DIR2=$DIR1
+ DIR3=$DIR1
+ fi
+
+ PATHOK=1
+ for i in $DIR1 $DIR2 $DIR3; do
+ if [ `echo $i | awk '{ if (/^\/[A-Za-z0-9\.\-_]+\/?([A-Za-z0-9\.\-_]+\/?)*$/) { print 1 } else { print 0 } }'` = 0 ]; then
+ PATHOK=0
+ fi
+ done
+
+ if [ $PATHOK = 1 ]; then
+ RAIDOK=1;
+ fi
+ fi
+
+ if [ $RAIDOK = 0 ]; then
+ db_input critical boxbackup-server/incorrectDirectories || true
+ db_go
+ fi
+done
+
+# RAID block size
+# Try to figure out the block size of the first partition given
+db_get boxbackup-server/raidDirectories
+if [ "$OLDRAIDDIR" != "$RET" ]; then # Directories have been changed so we can try to guess the block size
+ TMPDIR=`echo $DIR1 | sed 's/\/$//'`
+
+ while [ "$TMPDIR" != "" ]; do
+ DEV=`df -P | grep "$TMPDIR$" | awk '{ print $1 }'`
+
+ if [ -z "$DEV" ]; then
+ TMPDIR=`echo $TMPDIR | sed 's/\/[^\/]*$//'`
+ else
+ TMPDIR=""
+ fi
+ done
+
+ if [ "$DEV" != "" ]; then
+ if [ -x /sbin/tune2fs ]; then
+ BS=`/sbin/tune2fs -l $DEV 2>/dev/null | grep 'Block size' | awk '{print $3 }'`
+
+ if [ $? = 0 -a $BS != "" ]; then
+ db_set boxbackup-server/raidBlockSize "$BS"
+ fi
+ fi
+ fi
+fi
+
+BSOK=0
+while [ $BSOK = 0 ]; do
+ db_input medium boxbackup-server/raidBlockSize || true
+ db_go
+
+ db_get boxbackup-server/raidBlockSize
+
+ if [ `echo $RET | awk '{ if (/^[0-9]+$/) { print 1 } else { print 0 } }'` = 1 ]; then
+ if [ `echo $RET | awk '{ bs=sqrt($1); if (bs ~ /^[0-9]+$/) { print 1 } else { print 0 } }'` = 1 ]; then
+ BSOK=1
+ fi
+ fi
+
+ if [ $BSOK = 0 ]; then
+ db_input critical boxbackup-server/incorrectBlocksize || true
+ db_go
+ fi
+done
+
+# x509 and private key
+db_input medium boxbackup-server/generateCertificate || true
+db_go
+
+exit 0
+
diff --git a/debian/boxbackup-server.dirs b/debian/boxbackup-server.dirs
new file mode 100644
index 00000000..a6c52ea6
--- /dev/null
+++ b/debian/boxbackup-server.dirs
@@ -0,0 +1,6 @@
+usr/sbin
+etc/boxbackup
+etc/boxbackup/bbstored
+etc/logcheck/ignore.d.workstation
+etc/logcheck/ignore.d.server
+
diff --git a/debian/boxbackup-server.docs b/debian/boxbackup-server.docs
new file mode 100644
index 00000000..046afd06
--- /dev/null
+++ b/debian/boxbackup-server.docs
@@ -0,0 +1,7 @@
+BUGS.txt
+CONTACT.txt
+DOCUMENTATION.txt
+LINUX.txt
+NETBSD.txt
+THANKS.txt
+VERSION.txt
diff --git a/debian/boxbackup-server.init b/debian/boxbackup-server.init
new file mode 100644
index 00000000..b7b1b970
--- /dev/null
+++ b/debian/boxbackup-server.init
@@ -0,0 +1,80 @@
+#! /bin/sh
+#
+### BEGIN INIT INFO
+# Provides: boxbackup-server
+# Required-Start: $syslog $local_fs $network
+# Required-Stop: $syslog $local_fs $network
+# Default-Start: 2 3 4 5
+# Default-Stop: S 0 1 6
+# Short-Description: boxbackup server
+# Description: Init script to start and stop the boxbackup server
+### END INIT INFO
+
+PATH=/sbin:/bin:/usr/sbin:/usr/bin
+DAEMON=/usr/sbin/bbstored
+NAME=bbstored
+DESC=boxbackup-server
+CONF=/etc/boxbackup/bbstored.conf
+
+test -f $DAEMON || exit 0
+
+test -f $CONF || exit 0
+
+PIDFILE=`grep 'PidFile' $CONF | sed 's/[[:space:]]*PidFile[[:space:]]*=[[:space:]]*\(\/[A-Za-z0-9/]*\)/\1/'`
+CERTFILE=`grep 'CertificateFile' $CONF | sed 's/[[:space:]]*CertificateFile[[:space:]]*=[[:space:]]*\(\/[A-Za-z0-9/]*\)/\1/'`
+
+[ -z $PIDFILE ] && PIDFILE="/var/run/bbstored.pid"
+
+# Don't start if certificate file is not present
+[ ! -e $CERTFILE ] && exit 0
+
+set -e
+
+case "$1" in
+ start)
+ echo -n "Starting $DESC: "
+ start-stop-daemon --start --quiet --pidfile $PIDFILE \
+ --exec $DAEMON -- $CONF
+ echo "$NAME."
+ ;;
+ stop)
+ echo -n "Stopping $DESC: "
+ start-stop-daemon --oknodo --stop --quiet --pidfile $PIDFILE \
+ --exec $DAEMON
+ echo "$NAME."
+ ;;
+ #reload)
+ #
+ # If the daemon can reload its config files on the fly
+ # for example by sending it SIGHUP, do it here.
+ #
+ # If the daemon responds to changes in its config file
+ # directly anyway, make this a do-nothing entry.
+ #
+ # echo "Reloading $DESC configuration files."
+ # start-stop-daemon --stop --signal 1 --quiet --pidfile \
+ # /var/run/$NAME.pid --exec $DAEMON
+ #;;
+ restart|force-reload)
+ #
+ # If the "reload" option is implemented, move the "force-reload"
+ # option to the "reload" entry above. If not, "force-reload" is
+ # just the same as "restart".
+ #
+ echo -n "Restarting $DESC: "
+ start-stop-daemon --oknodo --stop --quiet --pidfile \
+ $PIDFILE --exec $DAEMON
+ sleep 1
+ start-stop-daemon --start --quiet --pidfile \
+ $PIDFILE --exec $DAEMON -- $CONF
+ echo "$NAME."
+ ;;
+ *)
+ N=/etc/init.d/$NAME
+ # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
+ echo "Usage: $N {start|stop|restart|force-reload}" >&2
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/debian/boxbackup-server.install b/debian/boxbackup-server.install
new file mode 100644
index 00000000..f261dc83
--- /dev/null
+++ b/debian/boxbackup-server.install
@@ -0,0 +1,8 @@
+parcels/boxbackup-0.11rc1-backup-server-linux-gnu/bbstoreaccounts /usr/sbin/
+parcels/boxbackup-0.11rc1-backup-server-linux-gnu/bbstored /usr/sbin/
+parcels/boxbackup-0.11rc1-backup-server-linux-gnu/bbstored-certs /usr/bin/
+parcels/boxbackup-0.11rc1-backup-server-linux-gnu/bbstored-config /usr/sbin/
+parcels/boxbackup-0.11rc1-backup-server-linux-gnu/raidfile-config /usr/sbin/
+debian/tmp/etc/logcheck/ignore.d.workstation/boxbackup-server /etc/logcheck/ignore.d.workstation
+debian/tmp/etc/logcheck/ignore.d.server/boxbackup-server /etc/logcheck/ignore.d.server
+
diff --git a/debian/boxbackup-server.logcheck.ignore b/debian/boxbackup-server.logcheck.ignore
new file mode 100644
index 00000000..c19b43db
--- /dev/null
+++ b/debian/boxbackup-server.logcheck.ignore
@@ -0,0 +1,10 @@
+bbstored/hk\[.*\]: Starting housekeeping
+bbstored/hk\[.*\]: Finished housekeeping
+bbstored/hk\[.*\]: Housekeeping process started
+bbstored\[.*\]: Starting daemon
+bbstored\[.*\]: Terminating daemon
+bbstored\[.*\]: Incoming connection from.*port.*\(handling in child.*\)
+bbstored\[.*\]: Certificate CN:
+bbstored\[.*\]: Login: Client ID
+bbstored\[.*\]: Session finished
+
diff --git a/debian/boxbackup-server.manpages b/debian/boxbackup-server.manpages
new file mode 100644
index 00000000..9c0a7b02
--- /dev/null
+++ b/debian/boxbackup-server.manpages
@@ -0,0 +1,5 @@
+debian/bbstoreaccounts.8
+debian/bbstored-certs.8
+debian/bbstored-config.8
+debian/bbstored.8
+debian/raidfile-config.8
diff --git a/debian/boxbackup-server.postinst b/debian/boxbackup-server.postinst
new file mode 100644
index 00000000..95ceb542
--- /dev/null
+++ b/debian/boxbackup-server.postinst
@@ -0,0 +1,215 @@
+#! /bin/sh
+# postinst script for boxbackup-server
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+# * <postinst> `configure' <most-recently-configured-version>
+# * <old-postinst> `abort-upgrade' <new version>
+# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+# <new-version>
+# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+# <failed-install-package> <version> `removing'
+# <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+# quoting from the policy:
+# Any necessary prompting should almost always be confined to the
+# post-installation script, and should be protected with a conditional
+# so that unnecessary prompting doesn't happen if a package's
+# installation fails and the `postinst' is called with `abort-upgrade',
+# `abort-remove' or `abort-deconfigure'.
+
+#loading debconf module
+. /usr/share/debconf/confmodule
+
+CONFDIR=/etc/boxbackup
+DEBCONFRAID=$CONFDIR/raidfile.debconf
+DEBCONFBB=$CONFDIR/bbstored.debconf
+RAIDCONF=$CONFDIR/raidfile.conf
+BBCONF=$CONFDIR/bbstored.conf
+BBACCOUNTS=$CONFDIR/bbstored/boxbackup-server-accounts.txt
+BBUSER=bbstored
+BBPRIVKEY=$CONFDIR/bbstored/boxbackup-server-key.pem
+BBCERTREQ=$CONFDIR/bbstored/boxbackup-server-cert-req.pem
+BBCERT=$CONFDIR/bbstored/boxbackup-server-cert.pem
+BBCACERT=$CONFDIR/bbstored/boxbackup-client-ca-cert.pem
+
+case "$1" in
+ configure)
+
+ # Set up the bbstored user
+ if [ -z "`getent passwd $BBUSER`" ]; then
+ echo "Creating $BBUSER user." >&2
+ adduser --system --no-create-home \
+ --disabled-password --disabled-login \
+ --shell /bin/false --group --home /var $BBUSER
+ else
+ echo "User $BBUSER already exists." >&2
+ fi
+
+ db_get boxbackup-server/debconf
+ if [ "$RET" = "true" ]; then
+ # Generate configuration files
+ # raidfile.conf
+ echo "#To reconfigure boxbackup-server run #dpkg-reconfigure boxbackup-server" >> $DEBCONFRAID
+
+ echo "disc0" >> $DEBCONFRAID
+ echo "{" >> $DEBCONFRAID
+ echo " SetNumber = 0" >> $DEBCONFRAID
+
+ db_get boxbackup-server/raidBlockSize
+ echo " BlockSize = $RET" >> $DEBCONFRAID
+
+ db_get boxbackup-server/raidDirectories
+
+ DIR1=`echo "$RET" | awk '{ print $1 }'`
+ DIR2=`echo "$RET" | awk '{ print $2 }'`
+ DIR3=`echo "$RET" | awk '{ print $3 }'`
+
+ if [ -n $DIR1 ]; then
+ if [ -z $DIR2 -o -z $DIR3 ]; then
+ DIR2=$DIR1
+ DIR3=$DIR1
+ fi
+ fi
+
+ echo " Dir0 = $DIR1" >> $DEBCONFRAID
+ echo " Dir1 = $DIR2" >> $DEBCONFRAID
+ echo " Dir2 = $DIR3" >> $DEBCONFRAID
+
+ echo "}" >> $DEBCONFRAID
+
+ # Handle backup directories creation/permissions
+ for dir in "$DIR1" "$DIR2" "$DIR3"; do
+ if [ -d "$dir/backup" ]; then
+ # need stat package on Woody
+ #if (`stat -c %U $dir/backup` != $BBUSER); then
+ if [ `ls -ld $dir/backup | awk '{ print $3 }'` != "$BBUSER" ]; then
+ echo "Incorrect owner of backup directory. Changing it to $BBUSER..." >&2
+ chown $BBUSER:$BBUSER $dir/backup
+ fi
+
+ #if [ `stat -c %a $dir/backup` != "700" ]; then
+ if [ `ls -ld $dir/backup | awk '{ print $1 }'` != "drwx------" ]; then
+ chmod 700 $dir/backup
+ fi
+ else
+ echo "Creating $dir/backup directory..." >&2
+ mkdir -p $dir/backup
+ chown $BBUSER:$BBUSER $dir/backup
+ chmod 700 $dir/backup
+ fi
+ done
+
+ if ! dpkg-statoverride --list $CONFDIR/bbstored > /dev/null; then
+ dpkg-statoverride --update --add $BBUSER $BBUSER 700 $CONFDIR/bbstored
+ fi
+
+ # Accounts file
+ if [ ! -e $BBACCOUNTS ]; then
+ touch $BBACCOUNTS
+ fi
+
+ #if [ `stat -c %U $BBACCOUNTS` != $BBUSER ]; then
+ if [ `ls -ld $BBACCOUNTS | awk '{ print $3 }'` != "$BBUSER" ]; then
+ chown $BBUSER:$BBUSER $BBACCOUNTS
+ fi
+
+ #if [ `stat -c %a $BBACCOUNTS` != "600" ]; then
+ if [ `ls -ld $BBACCOUNTS | awk '{ print $1 }'` != "drw-------" ]; then
+ chmod 600 $BBACCOUNTS
+ fi
+
+ SERVNAME=`hostname --fqdn`
+
+ # SSL stuff
+ if [ ! -e $BBPRIVKEY -a ! -e $BBCERT ]; then
+ db_get boxbackup-server/generateCertificate
+
+ if [ "$RET" = "true" ]; then
+ if ! openssl genrsa -out $BBPRIVKEY 2048 >&2; then
+ echo "Private key generation failed! Check why." >&2
+ else
+ chown $BBUSER: $BBPRIVKEY
+ chmod 600 $BBPRIVKEY || true
+ fi
+
+ if ! openssl req -new -key $BBPRIVKEY -sha1 -out $BBCERTREQ >&2 <<EOF
+.
+.
+.
+.
+.
+$SERVNAME
+.
+.
+.
+EOF
+ then
+ echo "Certificate request generation failed ! Check why." >&2
+ fi
+ fi
+ fi
+
+ # Generate bbstored.conf
+ echo "#To reconfigure boxbackup-server run #dpkg-reconfigure boxbackup-server" >> $DEBCONFBB
+ echo "RaidFileConf = $RAIDCONF" >> $DEBCONFBB
+ echo "AccountDatabase = $BBACCOUNTS" >> $DEBCONFBB
+ echo >> $DEBCONFBB
+ echo "# Uncomment this line to see exactly what commands are being received from clients." >> $DEBCONFBB
+ echo "# ExtendedLogging = yes" >> $DEBCONFBB
+ echo >> $DEBCONFBB
+ echo "# scan all accounts for files which need deleting every 15 minutes." >> $DEBCONFBB
+ echo "TimeBetweenHousekeeping = 900" >> $DEBCONFBB
+ echo >> $DEBCONFBB
+ echo "Server" >> $DEBCONFBB
+ echo "{" >> $DEBCONFBB
+ echo " PidFile = /var/run/bbstored.pid" >> $DEBCONFBB
+ echo " User = bbstored" >> $DEBCONFBB
+ echo " ListenAddresses = inet:$SERVNAME" >> $DEBCONFBB
+ echo " CertificateFile = $BBCERT" >> $DEBCONFBB
+ echo " PrivateKeyFile = $BBPRIVKEY" >> $DEBCONFBB
+ echo " TrustedCAsFile = $BBCACERT" >> $DEBCONFBB
+ echo "}" >> $DEBCONFBB
+
+ db_stop
+
+ if [ -x /usr/bin/ucf ]; then
+ /usr/bin/ucf --three-way $DEBCONFRAID $RAIDCONF >&2 </dev/tty
+ fi
+ rm -f $DEBCONFRAID
+ chmod 644 $RAIDCONF || true
+ chown root:root $RAIDCONF || true
+
+ if [ -x /usr/bin/ucf ]; then
+ /usr/bin/ucf --three-way $DEBCONFBB $BBCONF >&2 </dev/tty
+ fi
+ rm -f $DEBCONFBB
+ chmod 644 $BBCONF || true
+ chown root:root $BBCONF || true
+ else
+ db_stop
+ fi
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+ db_stop
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`$1'" >&2
+ db_stop
+ exit 1
+ ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/boxbackup-server.postrm b/debian/boxbackup-server.postrm
new file mode 100644
index 00000000..ad624c69
--- /dev/null
+++ b/debian/boxbackup-server.postrm
@@ -0,0 +1,44 @@
+#! /bin/sh
+# postrm script for #PACKAGE#
+#
+# see: dh_installdeb(1)
+# summary of how this script can be called:
+# * <postrm> `remove'
+# * <postrm> `purge'
+# * <old-postrm> `upgrade' <new-version>
+# * <new-postrm> `failed-upgrade' <old-version>
+# * <new-postrm> `abort-install'
+# * <new-postrm> `abort-install' <old-version>
+# * <new-postrm> `abort-upgrade' <old-version>
+# * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# for details, see /usr/share/doc/packaging-manual/
+
+set -e
+
+
+case "$1" in
+ purge)
+ for i in /etc/boxbackup/raidfile.conf /etc/boxbackup/bbstored.conf; do
+ if [ -e $i ]; then
+ rm -f $i
+ fi
+ ucf -p $i
+ done
+
+ dpkg-statoverride --remove /etc/boxbackup/bbstored || true
+
+ getent passwd bbstored >/dev/null && deluser bbstored
+ getent group bbstored >/dev/null && delgroup bbstored
+ ;;
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+ ;;
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 0
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
diff --git a/debian/boxbackup-server.templates b/debian/boxbackup-server.templates
new file mode 100644
index 00000000..bf076435
--- /dev/null
+++ b/debian/boxbackup-server.templates
@@ -0,0 +1,76 @@
+# These templates have been reviewed by the debian-l10n-english
+# team
+#
+# If modifications/additions/rewording are needed, please ask
+# for an advice to debian-l10n-english@lists.debian.org
+#
+# Even minor modifications require translation updates and such
+# changes should be coordinated with translators and reviewers.
+
+Template: boxbackup-server/debconf
+Type: boolean
+Default: true
+_Description: Should BoxBackup be configured automatically?
+ The package configuration scripts can create the configuration files
+ for the BoxBackup server.
+ .
+ You should choose this option if you are not familiar with BoxBackup's
+ configuration options. The configuration can be done manually with the
+ 'raidfile-config' and 'bbstored-config' scripts.
+ .
+ The server will not start if it is not configured. In all cases,
+ reading the /usr/share/doc/boxbackup-server/README.Debian is
+ recommended.
+
+Template: boxbackup-server/raidDirectories
+Type: string
+_Description: Location of the RAID directories:
+ Please choose the location for the three RAID file directories.
+ .
+ To enable RAID, the directory names should be a space-separated list of
+ three partitions, each on different physical hard drives (for example:
+ '/raid/0.0 /raid/0.1 /raid/0.2').
+ .
+ If you don't want to enable RAID, just specify the path to one directory
+ where the backups will be stored (for example, /usr/local/lib/boxbackup).
+ .
+ These directories will be created if they do not exist.
+
+Template: boxbackup-server/incorrectDirectories
+Type: error
+_Description: Invalid path names
+ The path names to the directories must be absolute path names,
+ separated by spaces.
+ .
+ For example: /raid/0.0 /raid/0.1 /raid/0.2
+
+Template: boxbackup-server/raidBlockSize
+Type: string
+Default: 4096
+_Description: Block size for the userland RAID system:
+ BoxBackup uses userland RAID techniques.
+ .
+ Please choose the block size to use for the storage.
+ For maximum efficiency, you should choose the block size of the underlying
+ file system (which can be displayed with the 'tune2fs -l' command).
+ .
+ This value should be set even if you don't plan to use RAID.
+
+Template: boxbackup-server/generateCertificate
+Type: boolean
+Default: true
+_Description: Generate a server private key and X.509 certificate request?
+ The BoxBackup server needs an RSA private key and the corresponding X.509
+ certificate to perform client-server authentication and communication
+ encryption.
+ .
+ Both can be generated automatically. You will need to sign the
+ certificate with your root CA (see the boxbackup-utils package) and
+ put this signed certificate and the root CA certificate in the
+ configuration folder.
+
+Template: boxbackup-server/incorrectBlocksize
+Type: error
+_Description: Invalid block size
+ The block size must be a power of two (e.g. 1024 or 4096).
+
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 00000000..2bae9728
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,81 @@
+boxbackup (0.11~rc2-1) experimental; urgency=low
+
+ * new upstream release.
+
+ -- Reinhard Tartler <siretart@tauware.de> Tue, 05 Feb 2008 22:56:40 +0100
+
+boxbackup (0.11~rc1-1) experimental; urgency=low
+
+ * New upstream release.
+ - should fix builds on kFreeBSD architectures: (Closes: #440156).
+ - build against libbd4.6 instead of libdb4.3. (Closes: #442640).
+ - the config file template has been updated to be more specific for
+ the AlwaysIncludeFile Option (Closes: #435860).
+ * remove all generated files in clean target of debian/rules. Allows
+ package to build twice in a row (Closes: #442515).
+ * Install file ExceptionCodes.txt to documentation directories. The file
+ contains a list of Error codes found in logfiles.
+ * Simplify debian/rules by removing code to build arch-independent
+ packages. There are none.
+
+ -- Reinhard Tartler <siretart@tauware.de> Sun, 20 Jan 2008 19:09:59 +0100
+
+boxbackup (0.10+really0.10-2) unstable; urgency=low
+
+ * use rather 'nocheck' instead of 'notest'. Thanks to Michael Banck
+ <mbanck@debian.org> for notifying me about this.
+
+ -- Reinhard Tartler <siretart@tauware.de> Thu, 05 Jul 2007 09:04:50 +0200
+
+boxbackup (0.10+really0.10-1) unstable; urgency=low
+
+ * revert new upstream accidentally slipped into unstable.
+ * big apologies that I now need to upload this package earlier than
+ promised to the boxbackup translators :(
+ * add watchfile
+ * Bug fix: "boxbackup-server recommends boxbackup-utils (unavailable)",
+ thanks to Pelayo Gonzalez (Closes: #424992).
+ * Apply new debconf templates and debian/control review. Thanks to
+ Christan Perrier! (Closes: #429396)
+ * Bug fix: "boxbackup: French debconf templates translation", thanks to
+ Vincent Bernat (Closes: #430856).
+ * Bug fix: "[l10n] Czech translation of boxbackup debconf messages",
+ thanks to Miroslav Kure (Closes: #431463).
+ * Bug fix: "boxbackup: [INTL:vi] Vietnamese debconf templates
+ translation", thanks to Clytie Siddall (Closes: #430535).
+ * Bug fix: "depends on non-essential package ucf in postrm", thanks to
+ Michael Ablassmeier (Closes: #431518).
+ * Bug fix: "depends on non-essential package ucf in postrm", thanks to
+ Michael Ablassmeier (Closes: #431519).
+ * run testsuite on build, use 'notest' in $DEB_BUILD_OPTIONS to disable
+
+ -- Reinhard Tartler <siretart@tauware.de> Tue, 03 Jul 2007 12:30:49 +0200
+
+boxbackup (0.10-1) unstable; urgency=low
+
+ * upload to debian (Closes: #416605)
+ * Cleanups in debian/rules
+ * Apply patch from svn, commit #626, in order to fix FTBFS
+ see http://bbdev.fluffy.co.uk/trac/changeset/626
+ * Drop the boxbackup-utils package, since it only shipped one single
+ script, which is generally used for CA maintenance, so move it to the
+ to the boxbackup-server package
+ * Bump standards version to 3.7.2
+ * add missing manpages
+ * add README.Debian
+ * use debhelper 5
+ * cleanup the versioned dependencies in debian/control
+
+ [ Jérôme Schell ]
+
+ * New upstream version
+ * Add LSB headers in init script
+
+ -- Reinhard Tartler <siretart@tauware.de> Mon, 18 Jun 2007 15:35:55 +0100
+
+boxbackup (0.09-3) unstable; urgency=low
+
+ * Added man pages for bbackupd, bbackupd-config, bbackupctl, bbackupquery
+ * Improve lintian compatibility of the packages
+
+ -- Jérôme Schell <jerome@myreseau.org> Mon, 10 Oct 2005 14:16:20 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 00000000..7813681f
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5 \ No newline at end of file
diff --git a/debian/control b/debian/control
new file mode 100644
index 00000000..bca1abbb
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: boxbackup
+Section: utils
+Priority: optional
+Maintainer: Reinhard Tartler <siretart@tauware.de>
+Build-Depends: debhelper (>> 5.0.0), libedit-dev, libdb4.6-dev, libssl-dev, zlib1g-dev
+Standards-Version: 3.7.2
+XS-Vcs-bzr: http://bazaar.launchpad.net/~siretart/boxbackup/boxbackup.debian
+XS-Vcs-Browser: http://codebrowse.launchpad.net/~siretart/boxbackup/boxbackup.debian/files
+
+Package: boxbackup-server
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, adduser, perl, gawk, ucf, openssl, debconf | debconf-2.0
+Description: server for the BoxBackup remote backup system
+ BoxBackup is an automatic on-line backup system.
+ The server waits for connections from remote clients,
+ authenticates them via X.509 certificates and stores the
+ encrypted data on hard drives with optional RAID techniques.
+ It also supports versions historization and per-user quotas.
+
+Package: boxbackup-client
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}, ucf, perl, openssl, debconf | debconf-2.0
+Description: client for the BoxBackup remote backup system
+ BoxBackup is an automatic on-line backup system.
+ The client watches for changes on the local file system,
+ connects to a BoxBackup server and sends the changes via a
+ secure channel. All data is encrypted before being sent to
+ the server. A command-line tool is provided for restoration
+ of backups including deleted files and old versions.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 00000000..42482124
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,48 @@
+This package was debianized by Jrme Schell <jerome@myreseau.org> on
+Tue, 1 Jun 2004 07:51:24 +0000.
+
+It was downloaded from http://www.fluffy.co.uk/boxbackup/
+
+Upstream Author: Ben Summers <ben@fluffy.co.uk>
+
+Copyright:
+
+Copyright (c) 2003, 2004
+ Ben Summers. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+3. All use of this software and associated advertising materials must
+ display the following acknowledgement:
+ This product includes software developed by Ben Summers.
+4. The names of the Authors may not be used to endorse or promote
+ products derived from this software without specific prior written
+ permission.
+
+[Where legally impermissible the Authors do not disclaim liability for
+direct physical injury or death caused solely by defects in the software
+unless it is modified by a third party.]
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
+IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
+Commentary
+
+This license is based on a standard BSD license. Some minor changes in wording have been made to fit in with English law.
+
+ Ben Summers, 2003, 2004
diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in
new file mode 100644
index 00000000..6cd99807
--- /dev/null
+++ b/debian/po/POTFILES.in
@@ -0,0 +1,2 @@
+[type: gettext/rfc822deb] boxbackup-client.templates
+[type: gettext/rfc822deb] boxbackup-server.templates
diff --git a/debian/po/cs.po b/debian/po/cs.po
new file mode 100644
index 00000000..4c9ea057
--- /dev/null
+++ b/debian/po/cs.po
@@ -0,0 +1,511 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: boxbackup\n"
+"Report-Msgid-Bugs-To: siretart@tauware.de\n"
+"POT-Creation-Date: 2007-06-23 03:05+0200\n"
+"PO-Revision-Date: 2007-07-02 21:23+0200\n"
+"Last-Translator: Miroslav Kure <kurem@debian.cz>\n"
+"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:2001
+msgid "Should the BoxBackup client be configured automatically?"
+msgstr "Má se klient BoxBackupu nastavit automaticky?"
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:2001
+msgid ""
+"The package configuration scripts can create the configuration files for the "
+"BoxBackup client."
+msgstr ""
+"Konfigurační skript balíku může vytvořit konfigurační soubory pro klienta "
+"BoxBackupu."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:2001
+msgid ""
+"You should choose this option if you are not familiar with BoxBackup's "
+"configuration options."
+msgstr ""
+"Pokud zrovna nekamarádíte s konfiguračními volbami BoxBackupu, měli byste "
+"tuto možnost povolit."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:2001
+msgid ""
+"Please read the /usr/share/doc/boxbackup-client/README.Debian for details "
+"about the configuration of the BoxBackup client."
+msgstr ""
+"Podrobnosti o nastavení klienta BoxBackupu naleznete v souboru "
+"/usr/share/doc/boxbackup-client/README.Debian."
+
+#. Type: select
+#. Description
+#: ../boxbackup-client.templates:3001
+msgid "Run mode for the BoxBackup client:"
+msgstr "Režim spouštění klienta BoxBackupu:"
+
+#. Type: select
+#. Description
+#: ../boxbackup-client.templates:3001
+msgid "The BoxBackup client supports two modes of backup:"
+msgstr "Klient BoxBackupu podporuje dva režimy zálohování:"
+
+#. Type: select
+#. Description
+#. Translators, please keep reference to 'lazy' and 'snapshot' as
+#. these options are written as is in the software documentation
+#: ../boxbackup-client.templates:3001
+msgid ""
+"In the 'lazy' mode, the backup daemon will regularly scan the file system "
+"searching for modified files. It will then upload the files older than a "
+"specified age to the backup server."
+msgstr ""
+"V „líném“ režimu bude zálohovací daemon pravidelně prohledávat souborový "
+"systém a hledat změněné soubory. Poté nahraje soubory starší než zadaný věk "
+"na zálohovací server."
+
+#. Type: select
+#. Description
+#: ../boxbackup-client.templates:3001
+msgid ""
+"In the 'snapshot' mode the backup will be explicitly run at regular "
+"intervals. A cron file (/etc/cron.d/boxbackup-client) is provided with the "
+"package and should be adapted to suit your needs."
+msgstr ""
+"Ve „snímkovém“ režimu se bude zálohování spouštět v pravidelných intervalech. "
+"S balíkem se dodává cronový soubor /etc/cron.d/boxbackup-client, který byste "
+"měli upravit dle svých potřeb."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:4001
+msgid "Account number for this node on the backup server:"
+msgstr "Číslo účtu tohoto uzlu na zálohovacím serveru:"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:4001
+msgid ""
+"The administrator of the BoxBackup server should have assigned this client a "
+"hexadecimal account number."
+msgstr ""
+"Správce serveru BoxBackup by měl tomuto klientovi přidělit hexadecimální "
+"číslo účtu."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:4001
+msgid ""
+"If no account number has been assigned yet, leave this field blank and "
+"configure it later by running 'dpkg-reconfigure boxbackup-client' as root."
+msgstr ""
+"Pokud tomuto klientovi ještě nebylo přiděleno číslo účtu, ponechte pole "
+"prázdné a nastavte jej později spuštěním 'dpkg-reconfigure boxbackup-client' "
+"pod uživatelem root."
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:5001
+msgid "Invalid account number"
+msgstr "Neplatné číslo účtu"
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:5001
+msgid "The account number must be a hexadecimal number (such as 1F04 or 4500)."
+msgstr "Číslo účtu musí být hexadecimální číslo (např. 1F04 nebo 4500)."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:6001
+msgid "Fully qualified domain name of the backup server:"
+msgstr "Plně kvalifikované jméno zálohovacího serveru:"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:6001
+msgid ""
+"Please enter the fully qualified domain name of the BoxBackup server which "
+"your client will use."
+msgstr ""
+"Zadejte prosím plně kvalifikované doménové jméno BoxBackup serveru, který "
+"má tento klient používat."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:6001
+msgid "The client will connect to the server on TCP port 2201."
+msgstr "Klient se připojí k serveru na TCP portu 2201."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:7001
+msgid "List of directories to backup:"
+msgstr "Seznam adresářů pro zálohování:"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:7001
+msgid ""
+"Please give a space-separated list of directories to be backed up onto the "
+"remote server."
+msgstr ""
+"Zadejte prosím mezerami oddělený seznam adresářů, které se mají zálohovat "
+"na vzdálený server."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:7001
+msgid ""
+"Those directories should not contain mounted file systems at any level in "
+"their subdirectories."
+msgstr ""
+"Tyto adresáře by v žádné úrovni podadresářů neměly obsahovat připojené "
+"souborové systémy."
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:8001
+msgid "Invalid path name"
+msgstr "Neplatná cesta"
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:8001 ../boxbackup-server.templates:4001
+msgid ""
+"The path names to the directories must be absolute path names, separated by "
+"spaces."
+msgstr "Cesty k souborům musí být absolutní a oddělené mezerami."
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:8001
+msgid "For example: /home/myaccount /etc/"
+msgstr "Například: /home/mujucet /etc/"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:9001
+msgid "Interval (in seconds) between directory scans:"
+msgstr "Interval (v sekundách) mezi prohledáváním adresářů:"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:9001
+msgid ""
+"BoxBackup regularly scans the selected directories, looking for modified "
+"files."
+msgstr ""
+"BoxBackup pravidelně prohledává vybrané adresáře a hledá změněné soubory."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:9001
+msgid "Please choose the scan interval in seconds."
+msgstr "Zadejte prosím interval mezi prohledáváními."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:10001
+msgid "Minimum time to wait (in seconds) before uploading a file:"
+msgstr "Minimální doba čekání (v sekundách) před nahráním souboru:"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:10001
+msgid ""
+"A file will be uploaded to the server only after a certain time after its "
+"last modification."
+msgstr ""
+"Soubor se zazálohuje na server pouze po uplynutí určitého času od jeho "
+"poslední změny."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:10001
+msgid ""
+"Low interval values will trigger frequent uploads to the server and more "
+"revisions being created with older revisions being removed earlier."
+msgstr ""
+"Nízké hodnoty způsobí častější nahrávání na server, vytváření více revizí "
+"a rychlejší rušení starých revizí."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:11001
+msgid "Maximum time to wait (in seconds) before uploading a file:"
+msgstr "Maximální doba čekání (v sekundách) před nahráním souboru:"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:11001
+msgid ""
+"Frequently modified files are likely to never get uploaded if they never "
+"reach the minimum wait time."
+msgstr ""
+"Často upravované soubory nejspíš nikdy nedosáhnou minimální hranice před "
+"nahráním souboru a tedy nebudou zálohovány."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:11001
+msgid ""
+"Please enter the maximum time to reach before the upload of a modified file "
+"to the server is enforced."
+msgstr ""
+"Zadejte prosím maximální čas, po kterém je nahrání změněného souboru na "
+"server vynuceno."
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:12001
+msgid "Invalid time entered"
+msgstr "Zadán neplatný čas"
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:12001
+msgid "Please enter a non null integer value."
+msgstr "Zadejte prosím neprázdnou celočíselnou hodnotu."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:13001
+msgid "Recipient for alert notifications:"
+msgstr "Příjemce výstražných upozornění:"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:13001
+msgid ""
+"The BoxBackup client sends alert notifications when a problem occurs during "
+"the backup."
+msgstr ""
+"Jestliže se během zálohy vyskytne problém, klient BoxBackupu posílá výstražné "
+"upozornění."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:13001
+msgid ""
+"Please enter either a local user name (for example 'root') or an email "
+"address (for example 'admin@example.org')."
+msgstr ""
+"Zadejte prosím jméno lokálního uživatele (například „root“) nebo poštovní "
+"adresu (například „spravce@priklad.cz“)."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:14001
+msgid "Generate the client private key and X.509 certificate request?"
+msgstr "Vytvořit privátní klíč klienta a požadavek na certifikát X.509?"
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:14001
+msgid ""
+"The BoxBackup client needs an RSA private key and the corresponding X.509 "
+"certificate to authenticate itself with the server."
+msgstr ""
+"Klient BoxBackupu vyžaduje privátní RSA klíč a odpovídající certifikát X.509, "
+"aby se mohl autentizovat vůči serveru."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:14001
+msgid ""
+"Both can be generated automatically. You will need to send the certificate "
+"request to the BoxBackup server administrator who will sign it and send it "
+"back to you along with the server's Certification Authority certificate."
+msgstr ""
+"Oba se mohou vytvořit automaticky. Požadavek na certifikát budete muset "
+"poslat správci BoxBackup serveru, který požadavek podepíše a pošle zpět "
+"současně s certifikátem certifikační autority serveru."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:14001
+msgid ""
+"These files should be copied into BoxBackup's configuration directory. The "
+"file names to use are given in the /etc/boxbackup/bbackupd.conf file."
+msgstr ""
+"Tyto soubory by měly být nakopírovány do konfiguračního adresáře BoxBackupu. "
+"Očekávaná jména souborů jsou zadána v souboru /etc/boxbackup/bbackupd.conf."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:2001
+msgid "Should BoxBackup be configured automatically?"
+msgstr "Má se BoxBackup nastavit automaticky?"
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:2001
+msgid ""
+"The package configuration scripts can create the configuration files for the "
+"BoxBackup server."
+msgstr ""
+"Konfigurační skripty balíku mohou vytvořit konfigurační soubory BoxBackup "
+"serveru."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:2001
+msgid ""
+"You should choose this option if you are not familiar with BoxBackup's "
+"configuration options. The configuration can be done manually with the "
+"'raidfile-config' and 'bbstored-config' scripts."
+msgstr ""
+"Pokud zrovna nekamarádíte s konfiguračními volbami BoxBackupu, měli byste "
+"tuto možnost povolit. Konfiguraci můžete provést i ručně pomocí skriptů "
+"„raidfile-config“ a „bbstored-config“."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:2001
+msgid ""
+"The server will not start if it is not configured. In all cases, reading "
+"the /usr/share/doc/boxbackup-server/README.Debian is recommended."
+msgstr ""
+"Dokud jej nenakonfigurujete, server se odmítne spustit. Každopádně je "
+"doporučeno přečíst si /usr/share/doc/boxbackup-client/README.Debian."
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:3001
+msgid "Location of the RAID directories:"
+msgstr "Umístění RAID adresářů:"
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:3001
+msgid "Please choose the location for the three RAID file directories."
+msgstr "Vyberte prosím umístění tří adresářů se souborovými RAIDy."
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:3001
+msgid ""
+"To enable RAID, the directory names should be a space-separated list of "
+"three partitions, each on different physical hard drives (for example: '/"
+"raid/0.0 /raid/0.1 /raid/0.2')."
+msgstr ""
+"Pro povolení RAIDu zadejte mezerami oddělený seznam tří oblastí, kde každá "
+"by měla ležet na jiném fyzickém disku (například: „/raid/0.0 /raid/0.1 "
+"/raid/0.2“)."
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:3001
+msgid ""
+"If you don't want to enable RAID, just specify the path to one directory "
+"where the backups will be stored (for example, /usr/local/lib/boxbackup)."
+msgstr ""
+"Nechcete-li povolit RAID, zadejte cestu k jedinému adresáři, do kterého se "
+"budou ukládat zálohy (například /usr/local/lib/boxbackup)."
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:3001
+msgid "These directories will be created if they do not exist."
+msgstr "Pokud neexistují, budou tyto adresáře vytvořeny."
+
+#. Type: error
+#. Description
+#: ../boxbackup-server.templates:4001
+msgid "Invalid path names"
+msgstr "Neplatné cesty"
+
+#. Type: error
+#. Description
+#: ../boxbackup-server.templates:4001
+msgid "For example: /raid/0.0 /raid/0.1 /raid/0.2"
+msgstr "Například: /raid/0.0 /raid/0.1 /raid/0.2"
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:5001
+msgid "Block size for the userland RAID system:"
+msgstr "Velikost bloku RAIDu v uživatelském prostoru:"
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:5001
+msgid "BoxBackup uses userland RAID techniques."
+msgstr "BoxBackup využívá techniky RAIDu v uživatelském prostoru."
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:5001
+msgid ""
+"Please choose the block size to use for the storage. For maximum efficiency, "
+"you should choose the block size of the underlying file system (which can be "
+"displayed with the 'tune2fs -l' command)."
+msgstr ""
+"Zadejte prosím velikost bloku, která se má použít pro úložiště. Pro "
+"maximální efektivitu byste měli zvolit stejnou velikost bloku, jakou má "
+"souborový systém, na kterém je úložiště postaveno (zjistíte například "
+"příkazem 'tune2fs -l')."
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:5001
+msgid "This value should be set even if you don't plan to use RAID."
+msgstr ""
+"Tuto hodnotu byste měli nastavit i v případě, že neplánujete použití RAIDu."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:6001
+msgid "Generate a server private key and X.509 certificate request?"
+msgstr "Vytvořit privátní klíč serveru a požadavek na certifikát X.509?"
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:6001
+msgid ""
+"The BoxBackup server needs an RSA private key and the corresponding X.509 "
+"certificate to perform client-server authentication and communication "
+"encryption."
+msgstr ""
+"BoxBackup server vyžaduje privátní RSA klíč a odpovídající certifikát X.509, "
+"aby mohl provádět autentizaci mezi klientem a serverem a aby mohl šifrovat "
+"komunikaci."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:6001
+msgid ""
+"Both can be generated automatically. You will need to sign the certificate "
+"with your root CA (see the boxbackup-utils package) and put this signed "
+"certificate and the root CA certificate in the configuration folder."
+msgstr ""
+"Oba se mohou vytvořit automaticky. Certifikát budete muset podepsat svou "
+"kořenovou certifikační autoritou (viz balík boxbackup-utils) a podepsaný "
+"jej umístit společně s kořenovým certifikátem certifikační autority do "
+"složky s konfigurací."
+
+#. Type: error
+#. Description
+#: ../boxbackup-server.templates:7001
+msgid "Invalid block size"
+msgstr "Neplatná velikost bloku"
+
+#. Type: error
+#. Description
+#: ../boxbackup-server.templates:7001
+msgid "The block size must be a power of two (e.g. 1024 or 4096)."
+msgstr "Velikost bloku musí být mocninou dvou (např. 1024 nebo 4096)."
diff --git a/debian/po/fr.po b/debian/po/fr.po
new file mode 100644
index 00000000..305353aa
--- /dev/null
+++ b/debian/po/fr.po
@@ -0,0 +1,525 @@
+# Copyright (C) 2007, Vincent Bernat <bernat@luffy.cx>
+# This file is distributed under the same license as the boxbackup package.
+#
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: boxbackup_0.10-1\n"
+"Report-Msgid-Bugs-To: siretart@tauware.de\n"
+"POT-Creation-Date: 2007-06-23 03:05+0200\n"
+"PO-Revision-Date: 2007-06-26 07:42+0200\n"
+"Last-Translator: Vincent Bernat <bernat@luffy.cx>\n"
+"Language-Team: French <debian-l10n-french@lists.debian.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:2001
+msgid "Should the BoxBackup client be configured automatically?"
+msgstr "Faut-il automatiquement configurer le client BoxBackup ?"
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:2001
+msgid ""
+"The package configuration scripts can create the configuration files for the "
+"BoxBackup client."
+msgstr ""
+"Les scripts de configuration de ce paquet peuvent créer les fichiers de "
+"configuration pour le client BoxBackup."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:2001
+msgid ""
+"You should choose this option if you are not familiar with BoxBackup's "
+"configuration options."
+msgstr ""
+"Vous devriez utiliser cette option si les options de configuration de "
+"BoxBackup ne vous sont pas familières."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:2001
+msgid ""
+"Please read the /usr/share/doc/boxbackup-client/README.Debian for details "
+"about the configuration of the BoxBackup client."
+msgstr ""
+"Veuillez consulter le fichier /usr/share/doc/boxbackup-client/README.Debian "
+"pour obtenir des détails sur la configuration du client BoxBackup."
+
+#. Type: select
+#. Description
+#: ../boxbackup-client.templates:3001
+msgid "Run mode for the BoxBackup client:"
+msgstr "Mode d'exécution pour le client BoxBackup :"
+
+#. Type: select
+#. Description
+#: ../boxbackup-client.templates:3001
+msgid "The BoxBackup client supports two modes of backup:"
+msgstr "Le client BoxBackup gère deux modes de sauvegarde :"
+
+#. Type: select
+#. Description
+#. Translators, please keep reference to 'lazy' and 'snapshot' as
+#. these options are written as is in the software documentation
+#: ../boxbackup-client.templates:3001
+msgid ""
+"In the 'lazy' mode, the backup daemon will regularly scan the file system "
+"searching for modified files. It will then upload the files older than a "
+"specified age to the backup server."
+msgstr ""
+"Avec le mode simplifié (« lazy »), le démon de sauvegarde recherchera "
+"régulièrement les fichiers modifiés sur le système. Il enverra les fichiers "
+"plus anciens qu'un âge donné au serveur de sauvegarde."
+
+#. Type: select
+#. Description
+#: ../boxbackup-client.templates:3001
+msgid ""
+"In the 'snapshot' mode the backup will be explicitly run at regular "
+"intervals. A cron file (/etc/cron.d/boxbackup-client) is provided with the "
+"package and should be adapted to suit your needs."
+msgstr ""
+"Avec le mode instantané (« snapshot »), la sauvegarde sera lancée "
+"explicitement à intervalles réguliers. Le fichier /etc/cron.d/boxbackup-"
+"client pour le démon cron est fourni avec le paquet et devra être adapté à "
+"vos besoins."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:4001
+msgid "Account number for this node on the backup server:"
+msgstr "Numéro de compte pour ce nœud sur le serveur de sauvegarde :"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:4001
+msgid ""
+"The administrator of the BoxBackup server should have assigned this client a "
+"hexadecimal account number."
+msgstr ""
+"L'administrateur de BoxBackup doit assigner à ce client un numéro de compte "
+"en hexadécimal."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:4001
+msgid ""
+"If no account number has been assigned yet, leave this field blank and "
+"configure it later by running 'dpkg-reconfigure boxbackup-client' as root."
+msgstr ""
+"Si aucun numéro de compte n'est encore assigné, laissez ce champ vide et "
+"remplissez le plus tard en lançant la commande « dpkg-reconfigure boxbackup-"
+"client » en tant qu'utilisateur root."
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:5001
+msgid "Invalid account number"
+msgstr "Numéro de compte invalide"
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:5001
+msgid "The account number must be a hexadecimal number (such as 1F04 or 4500)."
+msgstr ""
+"Le numéro de compte doit être un nombre en hexadécimal (comme 1F04 ou 4500)."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:6001
+msgid "Fully qualified domain name of the backup server:"
+msgstr "Nom d'hôte complet (FQDN) du serveur de sauvegarde :"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:6001
+msgid ""
+"Please enter the fully qualified domain name of the BoxBackup server which "
+"your client will use."
+msgstr ""
+"Veuillez indiquer le nom d'hôte complet (FQDN) du serveur BoxBackup que "
+"votre client doit utiliser."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:6001
+msgid "The client will connect to the server on TCP port 2201."
+msgstr "Le client se connectera sur le port TCP 2201 du serveur."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:7001
+msgid "List of directories to backup:"
+msgstr "Liste des répertoires à sauvegarder :"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:7001
+msgid ""
+"Please give a space-separated list of directories to be backed up onto the "
+"remote server."
+msgstr ""
+"Veuillez indiquer une liste de répertoires, séparés par des espaces, à "
+"sauvegarder sur le serveur distant."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:7001
+msgid ""
+"Those directories should not contain mounted file systems at any level in "
+"their subdirectories."
+msgstr ""
+"Ces répertoires ne doivent pas contenir de systèmes de fichiers montés dans "
+"l'un de leurs sous-répertoires, quelle que soit la profondeur."
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:8001
+msgid "Invalid path name"
+msgstr "Chemin invalide"
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:8001 ../boxbackup-server.templates:4001
+msgid ""
+"The path names to the directories must be absolute path names, separated by "
+"spaces."
+msgstr ""
+"Ces répertoires doivent être indiqués sous forme de chemins absolus et "
+"séparés par des espaces."
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:8001
+msgid "For example: /home/myaccount /etc/"
+msgstr "Exemple : /home/myaccount /etc/."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:9001
+msgid "Interval (in seconds) between directory scans:"
+msgstr "Intervalle (en secondes) entre deux parcours du répertoire :"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:9001
+msgid ""
+"BoxBackup regularly scans the selected directories, looking for modified "
+"files."
+msgstr ""
+"BoxBackup parcourt régulièrement les répertoires sélectionnés à la recherche "
+"de fichiers modifiés."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:9001
+msgid "Please choose the scan interval in seconds."
+msgstr "Veuillez choisir l'intervalle entre deux parcours en secondes."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:10001
+msgid "Minimum time to wait (in seconds) before uploading a file:"
+msgstr "Temps minimum à attendre (en secondes) avant d'envoyer un fichier :"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:10001
+msgid ""
+"A file will be uploaded to the server only after a certain time after its "
+"last modification."
+msgstr ""
+"Un fichier est envoyé au serveur uniquement après un certain temps après sa "
+"date de dernière modification."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:10001
+msgid ""
+"Low interval values will trigger frequent uploads to the server and more "
+"revisions being created with older revisions being removed earlier."
+msgstr ""
+"Un intervalle faible provoquera des envois fréquents vers le serveur et des "
+"versions successives en grand nombre. Les versions plus anciennes seront "
+"également supprimées plus tôt."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:11001
+msgid "Maximum time to wait (in seconds) before uploading a file:"
+msgstr "Délai maximum (en secondes) avant d'envoyer un fichier :"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:11001
+msgid ""
+"Frequently modified files are likely to never get uploaded if they never "
+"reach the minimum wait time."
+msgstr ""
+"Des fichiers fréquemment modifiés risquent de ne jamais être envoyés si le "
+"temps minimal avant envoi n'est jamais atteint."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:11001
+msgid ""
+"Please enter the maximum time to reach before the upload of a modified file "
+"to the server is enforced."
+msgstr ""
+"Veuillez indiquer le délai maximum à attendre avant de forcer l'envoi d'un "
+"fichier vers le serveur."
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:12001
+msgid "Invalid time entered"
+msgstr "Délai non valable"
+
+#. Type: error
+#. Description
+#: ../boxbackup-client.templates:12001
+msgid "Please enter a non null integer value."
+msgstr "Veuillez indiquer un entier strictement positif."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:13001
+msgid "Recipient for alert notifications:"
+msgstr "Destinataire des notifications d'alertes :"
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:13001
+msgid ""
+"The BoxBackup client sends alert notifications when a problem occurs during "
+"the backup."
+msgstr ""
+"Le client BoxBackup envoie des notifications d'alertes quand un problème "
+"survient lors d'une sauvegarde."
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:13001
+msgid ""
+"Please enter either a local user name (for example 'root') or an email "
+"address (for example 'admin@example.org')."
+msgstr ""
+"Vous pouvez soit indiquer un identifiant local (par exemple « root ») ou une "
+"adresse de courrier électronique (par exemple « admin@example.org »)."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:14001
+msgid "Generate the client private key and X.509 certificate request?"
+msgstr ""
+"Faut-il créer la clef privée et la demande de certificat X.509 du client ?"
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:14001
+msgid ""
+"The BoxBackup client needs an RSA private key and the corresponding X.509 "
+"certificate to authenticate itself with the server."
+msgstr ""
+"Le client BoxBackup a besoin d'une clef privée RSA et d'un certificat X.509 "
+"correspondant pour s'authentifier auprès du serveur."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:14001
+msgid ""
+"Both can be generated automatically. You will need to send the certificate "
+"request to the BoxBackup server administrator who will sign it and send it "
+"back to you along with the server's Certification Authority certificate."
+msgstr ""
+"Tous deux peuvent être créés automatiquement. Vous devrez envoyer la demande "
+"de certificat à l'administrateur du serveur BoxBackup qui la signera et vous "
+"la renverra accompagnée du certificat de l'autorité de certification (CA) du "
+"serveur."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:14001
+msgid ""
+"These files should be copied into BoxBackup's configuration directory. The "
+"file names to use are given in the /etc/boxbackup/bbackupd.conf file."
+msgstr ""
+"Ces fichiers doivent être copiés dans le répertoire de configuration de "
+"BoxBackup. Les noms de fichier à utiliser sont indiqués dans le fichier /etc/"
+"boxbackup/bbackupd.conf."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:2001
+msgid "Should BoxBackup be configured automatically?"
+msgstr "Faut-il automatiquement configurer BoxBackup ?"
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:2001
+msgid ""
+"The package configuration scripts can create the configuration files for the "
+"BoxBackup server."
+msgstr ""
+"Les scripts de configuration de ce paquet peuvent créer les fichiers de "
+"configuration pour le serveur BoxBackup."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:2001
+msgid ""
+"You should choose this option if you are not familiar with BoxBackup's "
+"configuration options. The configuration can be done manually with the "
+"'raidfile-config' and 'bbstored-config' scripts."
+msgstr ""
+"Vous devriez utiliser cette option si les options de configuration de "
+"BoxBackup ne vous sont pas familières. Vous pouvez aussi configurer le "
+"serveur vous-même à l'aide des scripts « raidfile-config » et « bbstored-"
+"config »."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:2001
+msgid ""
+"The server will not start if it is not configured. In all cases, reading "
+"the /usr/share/doc/boxbackup-server/README.Debian is recommended."
+msgstr ""
+"Le serveur ne démarrera pas s'il n'est pas configuré. Dans tous les cas, la "
+"lecture de /usr/share/doc/boxbackup-server/README.Debian est recommandée."
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:3001
+msgid "Location of the RAID directories:"
+msgstr "Emplacement des répertoires RAID :"
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:3001
+msgid "Please choose the location for the three RAID file directories."
+msgstr "Veuillez choisir l'emplacement des trois répertoires RAID."
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:3001
+msgid ""
+"To enable RAID, the directory names should be a space-separated list of "
+"three partitions, each on different physical hard drives (for example: '/"
+"raid/0.0 /raid/0.1 /raid/0.2')."
+msgstr ""
+"Pour activer la gestion RAID, veuillez indiquer, séparés par des espaces, "
+"les noms de trois partitions situées sur des disques physiques différents "
+"(par exemple : « /raid/0.0 /raid/0.1 /raid/0.2 »)."
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:3001
+msgid ""
+"If you don't want to enable RAID, just specify the path to one directory "
+"where the backups will be stored (for example, /usr/local/lib/boxbackup)."
+msgstr ""
+"Si vous ne voulez pas activer la gestion du RAID, indiquez seulement le "
+"chemin d'un répertoire où les sauvegardes seront stockées (par exemple, /usr/"
+"local/lib/boxbackup)."
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:3001
+msgid "These directories will be created if they do not exist."
+msgstr "Ces répertoires seront créés s'ils n'existent pas."
+
+#. Type: error
+#. Description
+#: ../boxbackup-server.templates:4001
+msgid "Invalid path names"
+msgstr "Chemins non valables"
+
+#. Type: error
+#. Description
+#: ../boxbackup-server.templates:4001
+msgid "For example: /raid/0.0 /raid/0.1 /raid/0.2"
+msgstr "Par exemple : /raid/0.0 /raid/0.1 /raid/0.2"
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:5001
+msgid "Block size for the userland RAID system:"
+msgstr "Taille des blocs pour le système RAID en espace utilisateur :"
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:5001
+msgid "BoxBackup uses userland RAID techniques."
+msgstr "BoxBackup utilise un système de RAID en espace utilisateur."
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:5001
+msgid ""
+"Please choose the block size to use for the storage. For maximum efficiency, "
+"you should choose the block size of the underlying file system (which can be "
+"displayed with the 'tune2fs -l' command)."
+msgstr ""
+"Veuillez choisir une taille de blocs pour le stockage. Pour une efficacité "
+"maximale, vous devriez choisir la même taille de blocs que le système de "
+"fichiers sous-jacent (que vous pouvez obtenir avec la commande « tune2fs -"
+"l »)."
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:5001
+msgid "This value should be set even if you don't plan to use RAID."
+msgstr ""
+"Cette valeur est nécessaire même si vous ne comptez pas utiliser le RAID."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:6001
+msgid "Generate a server private key and X.509 certificate request?"
+msgstr ""
+"Faut-il créer une clef privée et une demande de certificat X.509 pour le "
+"serveur ?"
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:6001
+msgid ""
+"The BoxBackup server needs an RSA private key and the corresponding X.509 "
+"certificate to perform client-server authentication and communication "
+"encryption."
+msgstr ""
+"Le serveur BoxBackup a besoin d'une clef privée RSA et du certificat X.509 "
+"correspondant pour l'authentification et le chiffrement entre le client et "
+"le serveur."
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:6001
+msgid ""
+"Both can be generated automatically. You will need to sign the certificate "
+"with your root CA (see the boxbackup-utils package) and put this signed "
+"certificate and the root CA certificate in the configuration folder."
+msgstr ""
+"Ces deux éléments peuvent être créés automatiquement. Vous aurez besoin de "
+"faire signer le certificat par votre autorité de certification principale "
+"(voir le paquet boxbackup-utils) et de placer le certificat signé accompagné "
+"du certificat du CA racine dans le répertoire de configuration."
+
+#. Type: error
+#. Description
+#: ../boxbackup-server.templates:7001
+msgid "Invalid block size"
+msgstr "Taille de blocs non valable"
+
+#. Type: error
+#. Description
+#: ../boxbackup-server.templates:7001
+msgid "The block size must be a power of two (e.g. 1024 or 4096)."
+msgstr ""
+"La taille d'un bloc doit être une puissance de deux (par exemple 1024 ou "
+"4096)."
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
new file mode 100644
index 00000000..68a153cf
--- /dev/null
+++ b/debian/po/templates.pot
@@ -0,0 +1,416 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: siretart@tauware.de\n"
+"POT-Creation-Date: 2007-04-15 18:32+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:1001
+msgid "Do you want to handle the boxbackup client configuration with debconf?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:1001
+msgid ""
+"Debconf can create the configuration files for boxbackup client. If you "
+"prefer to do this by yourself you will need to use the script bbackupd-"
+"config provided by this package."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:1001 ../boxbackup-server.templates:1001
+msgid "The server won't start if it isn't configured."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:1001
+msgid ""
+"Whatever you choose here, you will need to read the README.Debian file in /"
+"usr/share/doc/boxbackup-client."
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../boxbackup-client.templates:2001
+msgid "Run boxbackup client in lazy or snapshot mode:"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../boxbackup-client.templates:2001
+msgid "Boxbackup client supports two modes of backup:"
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../boxbackup-client.templates:2001
+msgid ""
+"In the lazy mode, the backup daemon will regularly scan your filesystem "
+"searching for modified files. It will then upload the files over a specified "
+"age to the backup server."
+msgstr ""
+
+#. Type: select
+#. Description
+#: ../boxbackup-client.templates:2001
+msgid ""
+"In snapshot mode the backup will be explicitly run at given time set in a "
+"cron entry. The cron file is provided with this package, you will have to "
+"set the time you wish the backup to occur (/etc/cron.d/boxbackup-client)."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:3001
+msgid "Account number for this node on the backup server:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:3001
+msgid ""
+"The administrator of the boxbackup server (perhaps you) should have provided "
+"you an account number. It consits in an hexadecimal number."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:3001
+msgid ""
+"If you don't already have one, leave that field blank. You will be able to "
+"configure it later by running dpkg-reconfigure boxbackup-client as root."
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../boxbackup-client.templates:4001
+msgid "Please enter an hexadecimal number"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../boxbackup-client.templates:4001
+msgid "The account number must be an hexadecimal number (e.g. 1E04 or 4500)."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:5001
+msgid "Full qualified domain name of the backup server:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:5001
+msgid ""
+"The server name is the computer running an instance of Boxbackup server your "
+"client will connect to. It must be the fully qualified domain name of that "
+"machine (that can be resolve to an IP address). If you are behind a "
+"firewall, you must allow outgoing connexion to tcp port 2201 to be able to "
+"reach the server."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:6001
+msgid "List of directories to backup:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:6001
+msgid ""
+"You must tell boxbackup which directories you would like to backup to the "
+"remote server."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:6001
+msgid ""
+"You must enter this directories as a space separated list of absolute path "
+"names. Be careful that those directories do NOT contain other mounted file "
+"systems within them at any depth or you will have problems."
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../boxbackup-client.templates:7001 ../boxbackup-server.templates:3001
+msgid "Please enter correct path names"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../boxbackup-client.templates:7001 ../boxbackup-server.templates:3001
+msgid ""
+"The path names to the directories must be absolute path names separated by "
+"spaces."
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../boxbackup-client.templates:7001
+msgid "For example: /home/myaccount /etc/"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:8001
+msgid "Interval in seconds between scan of directories:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:8001
+msgid ""
+"Boxbackup scans the directories you have selected looking for modified "
+"files. This scans occurs at regular interval that you can customize."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:8001
+msgid "The default value is 3600s (one hour)."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:9001
+msgid "Time to wait after a file modification before uploading it:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:9001
+msgid ""
+"A file will be uploaded to the server only after a certain time after its "
+"last modification. Reducing this value results in often modfied files being "
+"uploaded more often to the server. This means that more revisions will be "
+"created on the server and therefore the quota limit will be reached faster "
+"(thus removing older revisions of the files sooner)."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:9001
+msgid "The default value is 21600 seconds (six hours)."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:10001
+msgid "Maximum time to wait before uploading a frequently modified file:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:10001
+msgid ""
+"As a file is not uploaded before a certain time after its last modification, "
+"if it is frequently modified, it would never get uploaded. So this parameter "
+"defines the maximum time to wait since the first modification noticed before "
+"uploading a file."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:10001
+msgid "The default value is 86400 seconds (1 day)."
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../boxbackup-client.templates:11001
+msgid "Please enter a correct number of seconds"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../boxbackup-client.templates:11001
+msgid "This parameter must be a number."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:12001
+msgid "User name or email address to send notification to:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:12001
+msgid ""
+"Boxbackup client must know the user name or email address of the person who "
+"will receive alert notifications. Such notifications are sent when a problem "
+"occurs during the backup (the store is full or some files were not readable)."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-client.templates:12001
+msgid ""
+"Enter either a user name (e.g. root) or an email address (e.g. "
+"admin@mydomain.org)"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:13001
+msgid "Generate the client private key and x509 certificate request?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:13001
+msgid ""
+"The boxbackup client needs a RSA private key and the corresponding x509 "
+"certificate to authenticate itself to the server."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:13001
+msgid ""
+"Debconf can generate for you the private key and a x509 certificate sign "
+"request. You will need to send the certificate request to the administrator "
+"of the Boxbackup server and this one will sign it and send it back to you "
+"along with the server Certification Authority certificate. You will need to "
+"put these files in your boxbackup configuration directory (see /etc/"
+"boxbackup/bbackupd.conf file for the exact name to give to these files)."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-client.templates:13001 ../boxbackup-server.templates:5001
+msgid "If you prefer to manage this by yourself, say No here."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:1001
+msgid "Should Debconf handle your boxbackup config?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:1001
+msgid ""
+"Debconf can create the configuration files for boxbackup server. Select this "
+"option if you are familiar with boxbackup's configuration options. If you "
+"prefer to do this by yourself you will need to use the scripts raidfile-"
+"config and bbstored-config provided by this package."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:1001
+msgid ""
+"Whatever you choose here, you will need to read the README.Debian file in /"
+"usr/share/doc/boxbackup-server."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:2001
+msgid "Location of the RAID directories:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:2001
+msgid ""
+"You have to choose the location for the 3 RAID file directories. To enable "
+"RAID, it must be 3 directories path names separated by spaces and those path "
+"names should point to 3 partitions on 3 differents physical hard drives. For "
+"example: /raid/0.0 /raid/0.1 /raid/0.2"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:2001
+msgid ""
+"If you don't want to enable RAID, just specify the path to one directory "
+"where the backups will be stored in (e.g. /usr/local/lib/boxbackup)."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:2001
+msgid ""
+"If they don't allready exist, these directories will be created for you."
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../boxbackup-server.templates:3001
+msgid "For example: /raid/0.0 /raid/0.1 /raid/0.2"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:4001
+msgid "Block size for the userland RAID system:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../boxbackup-server.templates:4001
+msgid ""
+"BoxBackup uses userland RAID techniques. You have to choose the block size "
+"to use for the storage. For maximum efficiency, set it to the block size of "
+"the underlying filesystem (see tune2fs -l /dev/... to find your block size). "
+"Even if you don't plan to use RAID, you have to set that value."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:5001
+msgid "Generate a the server private key and x509 certificate request?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:5001
+msgid ""
+"The boxbackup server needs a RSA private key and the corresponding x509 "
+"certificate to perform client-server authentication and communication "
+"encryption."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../boxbackup-server.templates:5001
+msgid ""
+"Debconf can generate for you the private key and a x509 certificate sign "
+"request. You will need to sign the certificate with your root CA (see the "
+"boxbackup-utils package) and put this signed certificate and the root CA "
+"certificate in your configuration folder."
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../boxbackup-server.templates:6001
+msgid "Please enter a power of two number"
+msgstr ""
+
+#. Type: note
+#. Description
+#: ../boxbackup-server.templates:6001
+msgid "The block size must be a power of two number (e.g. 1024 or 4096)."
+msgstr ""
diff --git a/debian/po/vi.po b/debian/po/vi.po
new file mode 100644
index 00000000..a0f4320b
--- /dev/null
+++ b/debian/po/vi.po
@@ -0,0 +1,417 @@
+# Vietnamese translation for BoxBackup.
+# Copyright © 2007 Free Software Foundation, Inc.
+# Clytie Siddall <clytie@riverland.net.au>, 2007
+#
+msgid ""
+""
+msgstr "Project-Id-Version: boxbackup\n"
+"Report-Msgid-Bugs-To: siretart@tauware.de\n"
+"POT-Creation-Date: 2007-06-23 03:05+0200\n"
+"PO-Revision-Date: 2007-06-25 20:45+0930\n"
+"Last-Translator: Clytie Siddall <clytie@riverland.net.au>\n"
+"Language-Team: Vietnamese <vi-VN@googlegroups.com>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: LocFactoryEditor 1.6.4a3\n"
+
+#: ../boxbackup-client.templates:2001
+#. Type: boolean
+#. Description
+msgid "Should the BoxBackup client be configured automatically?"
+msgstr "Có nên tự động cấu hình ứng dụng khách BoxBackup không?"
+
+#: ../boxbackup-client.templates:2001
+#. Type: boolean
+#. Description
+msgid "The package configuration scripts can create the configuration files for the "
+"BoxBackup client."
+msgstr "Các văn lệnh cấu hình gói có thể tạo những tập tin cấu hình cho ứng dụng khách BoxBackup."
+
+#: ../boxbackup-client.templates:2001
+#. Type: boolean
+#. Description
+msgid "You should choose this option if you are not familiar with BoxBackup's "
+"configuration options."
+msgstr "Bạn nên bật tùy chọn này nếu bạn chưa quen với các tùy chọn cấu hình của BoxBackup."
+
+#: ../boxbackup-client.templates:2001
+#. Type: boolean
+#. Description
+msgid "Please read the /usr/share/doc/boxbackup-client/README.Debian for details "
+"about the configuration of the BoxBackup client."
+msgstr "Hãy đọc tài liệu Đọc Đi « /usr/share/doc/boxbackup-client/README.Debian » để tìm chi tiết về cấu hình của ứng dụng khách BoxBackup."
+
+#: ../boxbackup-client.templates:3001
+#. Type: select
+#. Description
+msgid "Run mode for the BoxBackup client:"
+msgstr "Chế độ chạy cho ứng dụng khách BoxBackup:"
+
+#: ../boxbackup-client.templates:3001
+#. Type: select
+#. Description
+msgid "The BoxBackup client supports two modes of backup:"
+msgstr "Ứng dụng khách BoxBackup hỗ trợ hai chế độ sao lưu :"
+
+#: ../boxbackup-client.templates:3001
+#. Type: select
+#. Description
+#. Translators, please keep reference to 'lazy' and 'snapshot' as
+#. these options are written as is in the software documentation
+msgid "In the 'lazy' mode, the backup daemon will regularly scan the file system "
+"searching for modified files. It will then upload the files older than a "
+"specified age to the backup server."
+msgstr "Trong chế độ « làm biếng », trình nền sao lưu sẽ quét đều đặn hệ thống tập tin tìm tập tin bị sửa đổi. Nó sẽ cũng tải lên máy phục vụ sao lưu mỗi tập tin cũ hơn thời gian đã xác định."
+
+#: ../boxbackup-client.templates:3001
+#. Type: select
+#. Description
+msgid "In the 'snapshot' mode the backup will be explicitly run at regular "
+"intervals. A cron file (/etc/cron.d/boxbackup-client) is provided with the "
+"package and should be adapted to suit your needs."
+msgstr "Trong chế độ « chụp hiện trạng », việc sao lưu sẽ được chạy dứt khoát theo mỗi khoảng đều đặn. Một tập tin định kỳ cron (/etc/cron.d/boxbackup-client) có sẵn với gói này và nên được sửa đổi để thích hợp với như cầu của bạn."
+
+#: ../boxbackup-client.templates:4001
+#. Type: string
+#. Description
+msgid "Account number for this node on the backup server:"
+msgstr "Số tài khoản cho nút này trên máy phục vụ sao lưu :"
+
+#: ../boxbackup-client.templates:4001
+#. Type: string
+#. Description
+msgid "The administrator of the BoxBackup server should have assigned this client a "
+"hexadecimal account number."
+msgstr "Quản trị của máy phục vụ sao lưu nên đã gán cho ứng dụng khách này một số hiệu tài khoản kiểu thập lục."
+
+#: ../boxbackup-client.templates:4001
+#. Type: string
+#. Description
+msgid "If no account number has been assigned yet, leave this field blank and "
+"configure it later by running 'dpkg-reconfigure boxbackup-client' as root."
+msgstr "Chưa gán số hiệu tài khoản thì bỏ rỗng trường này và cấu hình sau bằng cách chạy lệnh « dpkg-reconfigure boxbackup-client » với quyền người chủ."
+
+#: ../boxbackup-client.templates:5001
+#. Type: error
+#. Description
+msgid "Invalid account number"
+msgstr "Số hiệu tài khoản không hợp lệ"
+
+#: ../boxbackup-client.templates:5001
+#. Type: error
+#. Description
+msgid "The account number must be a hexadecimal number (such as 1F04 or 4500)."
+msgstr "Số hiệu tài khoản phải là con số thập lục (v.d. 1F04 hay 4500)."
+
+#: ../boxbackup-client.templates:6001
+#. Type: string
+#. Description
+msgid "Fully qualified domain name of the backup server:"
+msgstr "Tên miền có khả năng đầy đủ của máy phục vụ sao lưu :"
+
+#: ../boxbackup-client.templates:6001
+#. Type: string
+#. Description
+msgid "Please enter the fully qualified domain name of the BoxBackup server which "
+"your client will use."
+msgstr "Hãy nhập vào tên miền có khả năng đầy đủ (FQDN) của máy phục vụ Boxbackup cần sử dụng."
+
+#: ../boxbackup-client.templates:6001
+#. Type: string
+#. Description
+msgid "The client will connect to the server on TCP port 2201."
+msgstr "Ứng dụng khách sẽ kết nối tới máy phục vụ trên cổng TCP 2201."
+
+#: ../boxbackup-client.templates:7001
+#. Type: string
+#. Description
+msgid "List of directories to backup:"
+msgstr "Danh sách thư mục cần sao lưu :"
+
+#: ../boxbackup-client.templates:7001
+#. Type: string
+#. Description
+msgid "Please give a space-separated list of directories to be backed up onto the "
+"remote server."
+msgstr "Hãy đưa ra một danh sách định giới bằng dấu cách chứa những thư mục cần sao lưu vào máy phục vụ từ xa."
+
+#: ../boxbackup-client.templates:7001
+#. Type: string
+#. Description
+msgid "Those directories should not contain mounted file systems at any level in "
+"their subdirectories."
+msgstr "Những thư mục này không nên chứa hệ thống tập tin đã lắp ở cấp nào trong thư mục con."
+
+#: ../boxbackup-client.templates:8001
+#. Type: error
+#. Description
+msgid "Invalid path name"
+msgstr "Tên đường dẫn không hợp lệ"
+
+#: ../boxbackup-client.templates:8001
+#: ../boxbackup-server.templates:4001
+#. Type: error
+#. Description
+msgid "The path names to the directories must be absolute path names, separated by "
+"spaces."
+msgstr "Mỗi tên đường dẫn tới thư mục phải là tên đường dẫn tuyệt đối, định giới bằng dấu cách."
+
+#: ../boxbackup-client.templates:8001
+#. Type: error
+#. Description
+msgid "For example: /home/myaccount /etc/"
+msgstr "Thí dụ : /home/tài_khoản_tôi /etc/"
+
+#: ../boxbackup-client.templates:9001
+#. Type: string
+#. Description
+msgid "Interval (in seconds) between directory scans:"
+msgstr "Khoảng (theo giây) giữa hai lần quét thư mục:"
+
+#: ../boxbackup-client.templates:9001
+#. Type: string
+#. Description
+msgid "BoxBackup regularly scans the selected directories, looking for modified "
+"files."
+msgstr "Trình BoxBackup quét đều đặn các thư mục đã chọn, tìm tập tin bị sửa đổi."
+
+#: ../boxbackup-client.templates:9001
+#. Type: string
+#. Description
+msgid "Please choose the scan interval in seconds."
+msgstr "Hãy chọn khoảng quét theo giây."
+
+#: ../boxbackup-client.templates:10001
+#. Type: string
+#. Description
+msgid "Minimum time to wait (in seconds) before uploading a file:"
+msgstr "Thời gian tối thiểu (theo giây) cần đợi trước khi tải lên tập tin:"
+
+#: ../boxbackup-client.templates:10001
+#. Type: string
+#. Description
+msgid "A file will be uploaded to the server only after a certain time after its "
+"last modification."
+msgstr "Một tập tin sẽ được tải lên máy phục vụ chỉ sau một thời gian nào đó sau lần cuối cùng sửa đổi nó."
+
+#: ../boxbackup-client.templates:10001
+#. Type: string
+#. Description
+msgid "Low interval values will trigger frequent uploads to the server and more "
+"revisions being created with older revisions being removed earlier."
+msgstr "Giá trị khoảng thấp sẽ gây ra nhiều việc tải lên máy phục vụ hơn thì nhiều bản sửa đổi được tạo hơn, và các bản sửa đổi bị gỡ bỏ trước."
+
+#: ../boxbackup-client.templates:11001
+#. Type: string
+#. Description
+msgid "Maximum time to wait (in seconds) before uploading a file:"
+msgstr "Thời gian tối đa (theo giây) cần đợi trước khi tải lên tập tin:"
+
+#: ../boxbackup-client.templates:11001
+#. Type: string
+#. Description
+msgid "Frequently modified files are likely to never get uploaded if they never "
+"reach the minimum wait time."
+msgstr "Tập tin thường bị sửa đổi thì sẽ không được tải lên nếu chưa tới thời gian đợi tối thiểu."
+
+#: ../boxbackup-client.templates:11001
+#. Type: string
+#. Description
+msgid "Please enter the maximum time to reach before the upload of a modified file "
+"to the server is enforced."
+msgstr "Hãy nhập vào thời gian tối đa cần tới trước khi ép buộc việc tải lên máy phục vụ tập tin bị sửa đổi."
+
+#: ../boxbackup-client.templates:12001
+#. Type: error
+#. Description
+msgid "Invalid time entered"
+msgstr "Bạn đã nhập một thời gian không hợp lệ."
+
+#: ../boxbackup-client.templates:12001
+#. Type: error
+#. Description
+msgid "Please enter a non null integer value."
+msgstr "Hãy nhập vào một giá trị số nguyên khác rỗng."
+
+#: ../boxbackup-client.templates:13001
+#. Type: string
+#. Description
+msgid "Recipient for alert notifications:"
+msgstr "Người nhận thông báo cảnh giác:"
+
+#: ../boxbackup-client.templates:13001
+#. Type: string
+#. Description
+msgid "The BoxBackup client sends alert notifications when a problem occurs during "
+"the backup."
+msgstr "Ứng dụng khách BoxBackup gửi thông báo cảnh giác khi gặp lỗi trong khi sao lưu."
+
+#: ../boxbackup-client.templates:13001
+#. Type: string
+#. Description
+msgid "Please enter either a local user name (for example 'root') or an email "
+"address (for example 'admin@example.org')."
+msgstr "Hãy nhập vào hoặc một tên người dùng cục bộ (v.d. « root »), hoặc một địa chỉ thư điện tử (v.d. « admin@thí_dụ.org »)."
+
+#: ../boxbackup-client.templates:14001
+#. Type: boolean
+#. Description
+msgid "Generate the client private key and X.509 certificate request?"
+msgstr "Tạo ra khoá riêng ứng dụng khách và yêu cầu chứng nhận X.509 không?"
+
+#: ../boxbackup-client.templates:14001
+#. Type: boolean
+#. Description
+msgid "The BoxBackup client needs an RSA private key and the corresponding X.509 "
+"certificate to authenticate itself with the server."
+msgstr "Ứng dụng khách BoxBackup cần thiết một khoá riêng kiểu RSA, và chứng nhận X.509 tương ứng, để xác thực với máy phục vụ."
+
+#: ../boxbackup-client.templates:14001
+#. Type: boolean
+#. Description
+msgid "Both can be generated automatically. You will need to send the certificate "
+"request to the BoxBackup server administrator who will sign it and send it "
+"back to you along with the server's Certification Authority certificate."
+msgstr "Có thể tự động tạo ra cả hai. Bạn cần phải gửi yêu cầu chứng nhận cho quản trị máy phục vụ BoxBackup, để họ ký nó và gửi về bạn cùng với chứng nhận Nhà Cầm quyền Chứng nhận (CA) của máy phục vụ."
+
+#: ../boxbackup-client.templates:14001
+#. Type: boolean
+#. Description
+msgid "These files should be copied into BoxBackup's configuration directory. The "
+"file names to use are given in the /etc/boxbackup/bbackupd.conf file."
+msgstr "Những tập tin này nên được sao chép vào thư mục cấu hình của BoxBackup. Các tên tập tin cần dùng được đưa ra trong tập tin cấu hình « /etc/boxbackup/bbackupd.conf file »."
+
+#: ../boxbackup-server.templates:2001
+#. Type: boolean
+#. Description
+msgid "Should BoxBackup be configured automatically?"
+msgstr "Có nên tự động cấu hình BoxBackup không?"
+
+#: ../boxbackup-server.templates:2001
+#. Type: boolean
+#. Description
+msgid "The package configuration scripts can create the configuration files for the "
+"BoxBackup server."
+msgstr "Các văn lệnh cấu hình gói có thể tạo những tập tin cấu hình cho trình phục vụ BoxBackup."
+
+#: ../boxbackup-server.templates:2001
+#. Type: boolean
+#. Description
+msgid "You should choose this option if you are not familiar with BoxBackup's "
+"configuration options. The configuration can be done manually with the "
+"'raidfile-config' and 'bbstored-config' scripts."
+msgstr "Bạn nên bật tùy chọn này nếu bạn chưa quen với các tùy chọn cấu hình của BoxBackup. Bạn cũng có thể tự cấu hình bằng văn lệnh « raidfile-config » va « bbstored-config »."
+
+#: ../boxbackup-server.templates:2001
+#. Type: boolean
+#. Description
+msgid "The server will not start if it is not configured. In all cases, reading "
+"the /usr/share/doc/boxbackup-server/README.Debian is recommended."
+msgstr "Chưa cấu hình nên trình phục vụ không khởi chạy. Trong mọi trường hợp, khuyên bạn đọc tài liệu Đọc Đi « /usr/share/doc/boxbackup-server/README.Debian »."
+
+#: ../boxbackup-server.templates:3001
+#. Type: string
+#. Description
+msgid "Location of the RAID directories:"
+msgstr "Địa điểm của thư mục RAID:"
+
+#: ../boxbackup-server.templates:3001
+#. Type: string
+#. Description
+msgid "Please choose the location for the three RAID file directories."
+msgstr "Hãy chọn địa điểm cho ba thư mục RAID."
+
+#: ../boxbackup-server.templates:3001
+#. Type: string
+#. Description
+msgid "To enable RAID, the directory names should be a space-separated list of "
+"three partitions, each on different physical hard drives (for example: '/"
+"raid/0.0 /raid/0.1 /raid/0.2')."
+msgstr "Để hiệu lực khả năng RAID, những tên thư mục nên làm một danh sách định giới bằng dấu cách chứa ba phân vùng, mỗi điều trên ổ đĩa cứng vật lý riêng (v.d. « /raid/0.0 /raid/0.1 /raid/0.2 »)."
+
+#: ../boxbackup-server.templates:3001
+#. Type: string
+#. Description
+msgid "If you don't want to enable RAID, just specify the path to one directory "
+"where the backups will be stored (for example, /usr/local/lib/boxbackup)."
+msgstr "Không muốn hiệu lực RAID thì chỉ xác định đường dẫn tới một thư mục trong đó cần cất giữ các bản sao lưu (v.d. « /usr/local/lib/boxbackup »)."
+
+#: ../boxbackup-server.templates:3001
+#. Type: string
+#. Description
+msgid "These directories will be created if they do not exist."
+msgstr "Chưa tồn tại nên những thư mục này được tạo."
+
+#: ../boxbackup-server.templates:4001
+#. Type: error
+#. Description
+msgid "Invalid path names"
+msgstr "Tên đường dẫn không hợp lệ"
+
+#: ../boxbackup-server.templates:4001
+#. Type: error
+#. Description
+msgid "For example: /raid/0.0 /raid/0.1 /raid/0.2"
+msgstr "Thí dụ : /raid/0.0 /raid/0.1 /raid/0.2"
+
+#: ../boxbackup-server.templates:5001
+#. Type: string
+#. Description
+msgid "Block size for the userland RAID system:"
+msgstr "Cỡ khối cho hệ thống RAID vùng người dùng:"
+
+#: ../boxbackup-server.templates:5001
+#. Type: string
+#. Description
+msgid "BoxBackup uses userland RAID techniques."
+msgstr "BoxBackup sử dụng kỹ thuật RAID kiểu vùng người dùng."
+
+#: ../boxbackup-server.templates:5001
+#. Type: string
+#. Description
+msgid "Please choose the block size to use for the storage. For maximum efficiency, "
+"you should choose the block size of the underlying file system (which can be "
+"displayed with the 'tune2fs -l' command)."
+msgstr "Hãy chọn kích cỡ khối cần dùng cho sức chứa. Để hữu hiệu nhất, bạn nên chọn kích cỡ khối của hệ thống tập tin bên dưới (hiển thị nó bằng lệnh « tune2fs -l »)."
+
+#: ../boxbackup-server.templates:5001
+#. Type: string
+#. Description
+msgid "This value should be set even if you don't plan to use RAID."
+msgstr "Giá trị này nên được đặt thậm chí nếu bạn không định sử dụng RAID."
+
+#: ../boxbackup-server.templates:6001
+#. Type: boolean
+#. Description
+msgid "Generate a server private key and X.509 certificate request?"
+msgstr "Tạo ra một khoá riêng máy phục vụ và yêu cầu chứng nhận X.509 không?"
+
+#: ../boxbackup-server.templates:6001
+#. Type: boolean
+#. Description
+msgid "The BoxBackup server needs an RSA private key and the corresponding X.509 "
+"certificate to perform client-server authentication and communication "
+"encryption."
+msgstr "Trình phục vụ BoxBackup cần thiết một khoá riêng kiểu RSA, và chứng nhận X.509 tương ứng, để thực hiện tiến trình xác thực giữa ứng dụng khách và trình phục vụ, và để mật mã giao thông."
+
+#: ../boxbackup-server.templates:6001
+#. Type: boolean
+#. Description
+msgid "Both can be generated automatically. You will need to sign the certificate "
+"with your root CA (see the boxbackup-utils package) and put this signed "
+"certificate and the root CA certificate in the configuration folder."
+msgstr "Có thể tự động tạo ra cả hai. Bạn cần phải ký chứng nhận bằng Nhà Cầm quyền Chứng nhận (CA) gốc (xem gói « boxbackup-utils ») và để chứng nhận đã ký này và chứng nhận CA gốc vào thư mục cấu hình."
+
+#: ../boxbackup-server.templates:7001
+#. Type: error
+#. Description
+msgid "Invalid block size"
+msgstr "Cỡ khối không hợp lệ"
+
+#: ../boxbackup-server.templates:7001
+#. Type: error
+#. Description
+msgid "The block size must be a power of two (e.g. 1024 or 4096)."
+msgstr "Kích cỡ khối phải là hai lũy thừa (v.d. 1024 hay 4096)."
diff --git a/debian/raidfile-config.8 b/debian/raidfile-config.8
new file mode 100644
index 00000000..ad3aba6f
--- /dev/null
+++ b/debian/raidfile-config.8
@@ -0,0 +1,54 @@
+.\" Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH raidfile-config 8 "Apr 15, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh disable hyphenation
+.\" .hy enable hyphenation
+.\" .ad l left justify
+.\" .ad b justify to both left and right margins
+.\" .nf disable filling
+.\" .fi enable filling
+.\" .br insert line break
+.\" .sp <n> insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+raidfile-config \- utility to configure the client daemon of the Box Backup system
+.SH SYNOPSIS
+.B raidfile-config
+.RI "config-dir block-size dir0 [dir1 dir2]"
+.SH DESCRIPTION
+This manual page documents briefly the
+.B raidfile-config
+command.
+This manual page was written for the Debian distribution
+because the original program does not have a manual page.
+.PP
+\fbraidfile-config\fP can be used to manage the raidfile config of the
+Box Backup system.
+.SH OPTIONS
+.TP
+.B config-dir
+Location of the generated configuration. Generally /etc/boxbackup.
+.TP
+.B block-size
+must be a power of two, and usually the block or fragment size of your
+filing system.
+.TP
+.B dir0, dir1, dir2
+the directories used as the root of the raid file system. If only one
+directory is specified, then userland RAID is disabled. Specifying three
+directories enables it.
+.SH SEE ALSO
+.BR bbackupd (8),
+.BR bbackupctl (8),
+.BR bbackupquery (8).
+.br
+.SH AUTHOR
+This manual page was written by Reinhard Tartler <siretart@tauware.de>
+(with the help of the online documentation located at
+http://bbdev.fluffy.co.uk/trac/wiki/)
+for the Debian GNU/Linux system (but may be used by others).
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 00000000..50fe8b52
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,113 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+TMP:=$(CURDIR)/debian/tmp
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -g
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+ INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+ dh_testdir
+ ./configure $(DEB_EXTRA_CONFIG_FLAGS) LDFLAGS="-Wl,--as-needed"
+ touch configure-stamp
+
+build-stamp: configure-stamp
+ dh_testdir
+ $(MAKE)
+ touch build-stamp
+ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+ -./runtest.pl ALL
+endif
+
+# generated files for removal
+GENERATED_FILES = ExceptionCodes.txt infrastructure/BoxPlatform.pm
+GENERATED_FILES += lib/common/BoxConfig.h runtest.pl
+GENERATED_FILES += infrastructure/makebuildenv.pl
+GENERATED_FILES += infrastructure/makedistribution.pl
+GENERATED_FILES += infrastructure/makeparcels.pl
+GENERATED_FILES += lib/common/makeexception.pl
+GENERATED_FILES += lib/raidfile/raidfile-config
+GENERATED_FILES += lib/server/makeprotocol.pl
+GENERATED_FILES += test/backupstorefix/testfiles/testbackupstorefix.pl
+GENERATED_FILES += test/bbackupd/testfiles/extcheck1.pl
+GENERATED_FILES += test/bbackupd/testfiles/extcheck2.pl
+GENERATED_FILES += test/bbackupd/testfiles/notifyscript.pl
+GENERATED_FILES += test/bbackupd/testfiles/syncallowscript.pl
+GENERATED_FILES += bin/bbackupd/bbackupd-config
+GENERATED_FILES += bin/bbackupquery/makedocumentation.pl
+GENERATED_FILES += bin/bbstored/bbstored-certs
+GENERATED_FILES += bin/bbstored/bbstored-config
+
+build: build-stamp
+
+clean:
+ dh_testdir
+ dh_testroot
+ dh_clean build-stamp configure-stamp
+
+ find . -name '*.o' | xargs --no-run-if-empty rm
+ find . -name '*.a' | xargs --no-run-if-empty rm
+ find . -name 'autogen_*' | xargs --no-run-if-empty rm
+ find . -name '_*' | xargs --no-run-if-empty rm
+ find . -name 'test-*.log' | xargs --no-run-if-empty rm
+ find . -name 'Makefile' | xargs --no-run-if-empty rm
+
+ # the test scripts do strange things here
+ # (directories without write permissions)
+ [ ! -d debug ] || chmod -R +rw debug/
+ rm -fr release/ debug/ local/ parcels/
+
+ dh_clean config.log config.status
+ [ ! -f Makefile ] || $(MAKE) clean
+ dh_clean $(GENERATED_FILES)
+
+install: DH_OPTIONS=
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ mkdir -p $(TMP)/etc/logcheck/ignore.d.workstation
+ mkdir -p $(TMP)/etc/logcheck/ignore.d.server
+ install -m 644 debian/boxbackup-server.logcheck.ignore $(TMP)/etc/logcheck/ignore.d.workstation/boxbackup-server
+ install -m 644 debian/boxbackup-server.logcheck.ignore $(TMP)/etc/logcheck/ignore.d.server/boxbackup-server
+
+ dh_install
+
+binary-indep:
+# no architecture independant packages are being built
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir -a
+ dh_testroot -a
+ dh_installdebconf -a
+ dh_installdocs -a -A ExceptionCodes.txt
+ dh_installinit -a
+ dh_installcron -a
+ dh_installman
+ dh_installchangelogs -a
+ dh_strip -a
+ dh_compress -a
+ dh_fixperms -a
+ dh_installdeb -a
+ dh_shlibdeps -a
+ dh_gencontrol -a
+ dh_md5sums -a
+ dh_builddeb -a
+
+binary: binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 00000000..42a96c6d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/boxbackup/ boxbackup-(.*)\.tgz