#!/bin/bash # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # Bug reports to bugs@damtp with .cam.ac.uk appended # copy the files onto the web server [ -d /opt/websites/htdocs-damtp/internal/computing/backups/laptops ] || { echo "You need the web server NFS mounted" >&2 exit 1 } echo -n "Enter the local root " su -c 'su httpd -c "\ chmod u+w /opt/websites/htdocs-damtp/internal/computing/backups/laptops/\ {laptop_data_backup.sh,tardis.conf,tardis_excludes.txt} ; \ cp -a ~invent/building-info/backups/tardis/\ {laptop_data_backup.sh,tardis.conf,tardis_excludes.txt} \ /opt/websites/htdocs-damtp/internal/computing/backups/laptops/\ "'