Changeset 2094
- Timestamp:
- 27/02/2008 18:50:44 (4 years ago)
- Location:
- box/trunk
- Files:
-
- 14 edited
-
bin/bbackupd/bbackupd-config.in (modified) (1 diff)
-
bin/bbstored/bbstored-config.in (modified) (1 diff)
-
configure.ac (modified) (1 diff)
-
contrib/debian/bbackupd.in (modified) (1 diff)
-
contrib/debian/bbstored.in (modified) (1 diff)
-
contrib/redhat/bbackupd.in (modified) (4 diffs)
-
contrib/redhat/bbstored.in (modified) (4 diffs)
-
contrib/rpm/boxbackup.spec (modified) (2 diffs)
-
contrib/solaris/bbackupd-smf-method.in (modified) (1 diff)
-
contrib/solaris/bbstored-smf-method.in (modified) (1 diff)
-
contrib/suse/bbackupd.in (modified) (1 diff)
-
contrib/suse/bbstored.in (modified) (1 diff)
-
documentation/adminguide.xml (modified) (21 diffs)
-
infrastructure/BoxPlatform.pm.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/bin/bbackupd/bbackupd-config.in
r2091 r2094 578 578 579 579 6) Start the backup daemon with the command 580 @ bindir_expanded@/bbackupd$daemon_args580 @sbindir_expanded@/bbackupd$daemon_args 581 581 in /etc/rc.local, or your local equivalent. 582 582 Note that bbackupd must run as root. -
box/trunk/bin/bbstored/bbstored-config.in
r2063 r2094 235 235 236 236 5) Start the backup store daemon with the command 237 @ bindir_expanded@/bbstored$daemon_args237 @sbindir_expanded@/bbstored$daemon_args 238 238 in /etc/rc.local, or your local equivalent. 239 239 -
box/trunk/configure.ac
r2080 r2094 280 280 test "x$prefix" = xNONE && prefix=$ac_default_prefix 281 281 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 282 bindir_expanded=` eval "echo $bindir"`283 bindir_expanded=` eval "echo $bindir_expanded"`284 sysconfdir_expanded=` eval "echo $sysconfdir"`285 localstatedir_expanded=`eval "echo $localstatedir"`282 eval bindir_expanded=` eval "echo $bindir"` 283 eval sbindir_expanded=` eval "echo $sbindir"` 284 eval sysconfdir_expanded=` eval "echo $sysconfdir"` 285 eval localstatedir_expanded=`eval "echo $localstatedir"` 286 286 prefix=$saved_prefix 287 287 exec_prefix=$saved_exec_prefix -
box/trunk/contrib/debian/bbackupd.in
r2066 r2094 3 3 # Start and stop the Box Backup client daemon. 4 4 5 BBACKUPD=@ bindir_expanded@/bbackupd5 BBACKUPD=@sbindir_expanded@/bbackupd 6 6 CONFIG=@sysconfdir_expanded@/box/bbackupd.conf 7 7 PIDFILE=@localstatedir_expanded@/bbackupd.pid -
box/trunk/contrib/debian/bbstored.in
r2066 r2094 3 3 # Start and stop the Box Backup server daemon. 4 4 5 BBSTORED=@ bindir_expanded@/bbstored5 BBSTORED=@sbindir_expanded@/bbstored 6 6 CONFIG=@sysconfdir_expanded@/box/bbstored.conf 7 7 PIDFILE=@localstatedir_expanded@/bbstored.pid -
box/trunk/contrib/redhat/bbackupd.in
r2066 r2094 24 24 start() { 25 25 echo -n $"Starting $prog: " 26 daemon $prog26 daemon @sbindir_expanded@/$prog 27 27 RETVAL=$? 28 28 echo … … 33 33 stop() { 34 34 echo -n $"Stopping $prog: " 35 killproc $prog35 killproc @sbindir_expanded@/$prog 36 36 RETVAL=$? 37 37 echo … … 41 41 42 42 rhstatus() { 43 status $prog43 status @sbindir_expanded@/$prog 44 44 } 45 45 … … 51 51 reload() { 52 52 echo -n $"Reloading $prog configuration: " 53 killproc $prog -HUP53 killproc @sbindir_expanded@/$prog -HUP 54 54 retval=$? 55 55 echo -
box/trunk/contrib/redhat/bbstored.in
r2066 r2094 24 24 start() { 25 25 echo -n $"Starting $prog: " 26 daemon $prog26 daemon @sbindir_expanded@/$prog 27 27 RETVAL=$? 28 28 echo … … 33 33 stop() { 34 34 echo -n $"Stopping $prog: " 35 killproc $prog35 killproc @sbindir_expanded@/$prog 36 36 RETVAL=$? 37 37 echo … … 41 41 42 42 rhstatus() { 43 status $prog43 status @sbindir_expanded@/$prog 44 44 } 45 45 … … 51 51 reload() { 52 52 echo -n $"Reloading $prog configuration: " 53 killproc $prog -HUP53 killproc @sbindir_expanded@/$prog -HUP 54 54 retval=$? 55 55 echo -
box/trunk/contrib/rpm/boxbackup.spec
r2065 r2094 40 40 License: BSD 41 41 Group: Applications/Archiving 42 Packager: Martin Ebourne <boxbackup-dev@ fluffy.co.uk>43 URL: http://www. fluffy.co.uk/boxbackup/42 Packager: Martin Ebourne <boxbackup-dev@boxbackup.org> 43 URL: http://www.boxbackup.org/ 44 44 Source0: %{ident}.tgz 45 45 Requires: openssl >= 0.9.7a … … 144 144 install %{server_dir}/bbstored $RPM_BUILD_ROOT%{_sbindir} 145 145 install %{server_dir}/bbstoreaccounts $RPM_BUILD_ROOT%{_sbindir} 146 install %{server_dir}/bbstored-certs $RPM_BUILD_ROOT%{_ bindir}146 install %{server_dir}/bbstored-certs $RPM_BUILD_ROOT%{_sbindir} 147 147 install %{server_dir}/bbstored-config $RPM_BUILD_ROOT%{_sbindir} 148 148 install %{server_dir}/raidfile-config $RPM_BUILD_ROOT%{_sbindir} -
box/trunk/contrib/solaris/bbackupd-smf-method.in
r2066 r2094 6 6 # SMF arguments (start and restart [really "refresh"]) 7 7 'start') 8 @ bindir_expanded@/bbackupd8 @sbindir_expanded@/bbackupd 9 9 ;; 10 10 -
box/trunk/contrib/solaris/bbstored-smf-method.in
r2066 r2094 5 5 # SMF arguments (start and restart [really "refresh"]) 6 6 'start') 7 @ bindir_expanded@/bbstored7 @sbindir_expanded@/bbstored 8 8 ;; 9 9 -
box/trunk/contrib/suse/bbackupd.in
r2066 r2094 29 29 30 30 # Check for missing binaries (stale symlinks should not happen) 31 BBACKUPD_BIN=@ bindir_expanded@/bbackupd31 BBACKUPD_BIN=@sbindir_expanded@/bbackupd 32 32 if [ ! -x $BBACKUPD_BIN ] ; then 33 33 echo "$BBACKUPD_BIN not installed" -
box/trunk/contrib/suse/bbstored.in
r2066 r2094 30 30 31 31 # Check for missing binaries (stale symlinks should not happen) 32 BBSTORED_BIN=@ bindir_expanded@/bbstored32 BBSTORED_BIN=@sbindir_expanded@/bbstored 33 33 if [ ! -x $BBSTORED_BIN ] ; then 34 34 echo "$BBSTORED_BIN not installed" -
box/trunk/documentation/adminguide.xml
r1871 r2094 97 97 chown _bbstored /tmp/boxbackupRepository/ # Change the owner to the new boxbackup daemon user 98 98 99 /usr/local/ bin/raidfile-config /etc/box/ 1024 /tmp/boxbackupRepository99 /usr/local/sbin/raidfile-config /etc/box/ 1024 /tmp/boxbackupRepository 100 100 101 101 #substitute 1024 with the desired blocksize 102 102 #substitute /tmp/boxbackupRepository with a directory that exists where you want the backup store located 103 #/usr/local/ bin/raidfile-config --help shows you the options</programlisting>103 #/usr/local/sbin/raidfile-config --help shows you the options</programlisting> 104 104 105 105 <para>Then create the configuration file /etc/box/bbstored.conf The … … 112 112 <filename>/etc/box/bbstored.conf</filename> file.</para> 113 113 114 <programlisting>/usr/local/ bin/bbstored-config /etc/box hostname _bbstored</programlisting>114 <programlisting>/usr/local/sbin/bbstored-config /etc/box hostname _bbstored</programlisting> 115 115 116 116 <para>This last step outputs 5 instructions that you must execute to … … 165 165 <para>To setup the basic key structure, do the following:</para> 166 166 167 <programlisting>/usr/local/ bin/bbstored-certs ca init</programlisting>167 <programlisting>/usr/local/sbin/bbstored-certs ca init</programlisting> 168 168 169 169 <para>(See <ulink url="instguide.xml">OpenSSL notes</ulink> if you … … 182 182 do:</para> 183 183 184 <programlisting>/usr/local/ bin/bbstored-certs ca sign-server hostname-csr.pem</programlisting>184 <programlisting>/usr/local/sbin/bbstored-certs ca sign-server hostname-csr.pem</programlisting> 185 185 186 186 <para>This signs the certificate for the server. Follow the … … 200 200 create the account with:</para> 201 201 202 <programlisting>/usr/local/ bin/bbstoreaccounts create 75AB23C 0 4096M 4505M</programlisting>202 <programlisting>/usr/local/sbin/bbstoreaccounts create 75AB23C 0 4096M 4505M</programlisting> 203 203 204 204 <para>This looks complicated. The numbers are, in order:</para> … … 262 262 <para>Sign this CSR with this command:</para> 263 263 264 <programlisting>/usr/local/ bin/bbstored-certs ca sign 75AB23C-csr.pem</programlisting>264 <programlisting>/usr/local/sbin/bbstored-certs ca sign 75AB23C-csr.pem</programlisting> 265 265 266 266 <para>Don't forget to check that the embedded account number is … … 346 346 request.</para> 347 347 348 <programlisting>/usr/local/ bin/bbackupd-config /etc/box lazy <emphasis348 <programlisting>/usr/local/sbin/bbackupd-config /etc/box lazy <emphasis 349 349 role="bold">999 hostname</emphasis> /var/bbackupd <emphasis 350 350 role="bold">/home</emphasis></programlisting> … … 408 408 409 409 <para>You can then run the daemon (as root) by running 410 <command>/usr/local/ bin/bbackupd</command>, and of course, adding it410 <command>/usr/local/sbin/bbackupd</command>, and of course, adding it 411 411 to your system's startup scripts. The first time it's run it will 412 412 upload everything. Interrupting it and restarting it will only … … 518 518 </important> 519 519 520 <programlisting>/usr/local/ bin/bbackupd-config /etc/box lazy 51 server.example.com /var/bbackupd /home /etc/samba520 <programlisting>/usr/local/sbin/bbackupd-config /etc/box lazy 51 server.example.com /var/bbackupd /home /etc/samba 521 521 522 522 Setup bbackupd config utility. … … 580 580 581 581 6) Start the backup daemon with the command 582 /usr/local/ bin/bbackupd582 /usr/local/sbin/bbackupd 583 583 in /etc/rc.local, or your local equivalent. 584 584 Note that bbackupd must run as root. … … 1305 1305 <para>The command line syntax is:</para> 1306 1306 1307 <programlisting>/usr/local/ bin/bbackupctl [-q] [-c config-file] command</programlisting>1307 <programlisting>/usr/local/sbin/bbackupctl [-q] [-c config-file] command</programlisting> 1308 1308 1309 1309 <para>The -q option reduces the amount of output the program emits, … … 1359 1359 mode, and then run the following command as a cron job.</para> 1360 1360 1361 <programlisting>/usr/local/ bin/bbackupctl -q sync</programlisting>1361 <programlisting>/usr/local/sbin/bbackupctl -q sync</programlisting> 1362 1362 1363 1363 <para>This will cause the backup daemon to upload all changed files … … 1377 1377 or type:</para> 1378 1378 1379 <programlisting>/usr/local/ bin/bbackupquery -q usage quit</programlisting>1379 <programlisting>/usr/local/sbin/bbackupquery -q usage quit</programlisting> 1380 1380 1381 1381 <para>to show the space used as a single command.</para> … … 1389 1389 use:</para> 1390 1390 1391 <programlisting>/usr/local/ bin/bbstoreaccounts info 75AB23C</programlisting>1391 <programlisting>/usr/local/sbin/bbstoreaccounts info 75AB23C</programlisting> 1392 1392 1393 1393 <para>To adjust the soft and hard limits on an account, use:</para> 1394 1394 1395 <programlisting>/usr/local/ bin/bbstoreaccounts setlimit 75AB23C new-soft-limit new-hard-limit</programlisting>1395 <programlisting>/usr/local/sbin/bbstoreaccounts setlimit 75AB23C new-soft-limit new-hard-limit</programlisting> 1396 1396 1397 1397 <para>You do not need to restart the server.</para> … … 1539 1539 follows:</para> 1540 1540 1541 <programlisting>/usr/local/ bin/bbackupquery "compare -a" quit</programlisting>1541 <programlisting>/usr/local/sbin/bbackupquery "compare -a" quit</programlisting> 1542 1542 1543 1543 <para>This command will report all the differences found between the … … 1562 1562 file checksums and compares against that, then run:</para> 1563 1563 1564 <programlisting>/usr/local/ bin/bbackupquery "compare -aq" quit</programlisting>1564 <programlisting>/usr/local/sbin/bbackupquery "compare -aq" quit</programlisting> 1565 1565 1566 1566 <para>However, this does not check that the file attributes are … … 1596 1596 <para>Type:</para> 1597 1597 1598 <programlisting>/usr/local/ bin/bbackupquery</programlisting>1598 <programlisting>/usr/local/sbin/bbackupquery</programlisting> 1599 1599 1600 1600 <para>to run it in interactive mode.</para> … … 1629 1629 similar manner to a command line sftp client.</para> 1630 1630 1631 <programlisting>/usr/local/ bin/bbackupquery</programlisting>1631 <programlisting>/usr/local/sbin/bbackupquery</programlisting> 1632 1632 1633 1633 <para>Then navigate to the directory containing the file you want, … … 1745 1745 reports.</para> 1746 1746 1747 <programlisting>/usr/local/ bin/bbstoreaccounts check 1234</programlisting>1747 <programlisting>/usr/local/sbin/bbstoreaccounts check 1234</programlisting> 1748 1748 1749 1749 <para>This will take some time, and use a fair bit of memory (about 16 … … 1752 1752 flag:</para> 1753 1753 1754 <programlisting>/usr/local/ bin/bbstoreaccounts check 1234 fix</programlisting>1754 <programlisting>/usr/local/sbin/bbstoreaccounts check 1234 fix</programlisting> 1755 1755 1756 1756 <para>This will fix any errors, and remove unrecoverable files. … … 1842 1842 example</para> 1843 1843 1844 <programlisting>/usr/local/ bin/bbstored /some/other/dir/bbstored.config /usr/local/bin/bbackupquery -c /some/other/dir/bbackupd.config</programlisting>1844 <programlisting>/usr/local/sbin/bbstored /some/other/dir/bbstored.config /usr/local/sbin/bbackupquery -c /some/other/dir/bbackupd.config</programlisting> 1845 1845 1846 1846 <para>(daemons specify the name as the first argument, utility -
box/trunk/infrastructure/BoxPlatform.pm.in
r1906 r2094 77 77 78 78 # where to put the files 79 $install_into_dir = '@ bindir_expanded@';79 $install_into_dir = '@sbindir_expanded@'; 80 80 81 81 # if it's Darwin,
Note: See TracChangeset
for help on using the changeset viewer.
