
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigF8311D1C9D30CB16D578670F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 11/15/2012 12:42 AM, Dave Neary wrote:
Hi, =20 The suggestion I made yesterday on IRC concerning these emails was to strip the leading / from filenames in the back-up script (I am assuming=
that we have a list of files to back up, and that they are provided in = a file list provided to -T or --files-from - get files to archive from filename) and provide -C / as an argument (that is, set working directory to / for the archival). =20 Obviously, without access to the backup script, it's hard to recommend = a specific fix. Is mediawiki-backup.sh in source control somewhere?
Nope, we don't have anything in git yet. Here it is: #!/bin/bash DATE=3D`date +%Y%m%d` CONF=3D"LocalSettings.php" CONFREADONLY=3D"LocalSettings.php.readonly" CONFWRITE=3D"LocalSettings.php.writeable" CHARSET=3D"latin1" DB=3D"wikidb" PASS=3D"PASSWORD" USER=3D"wikiuser" HOST=3D"localhost" TAROPTS=3D"-czhf" FILES=3D"/var/www/html/w/images/ /var/www/html/w/LocalSettings.php /var/www/html/w/extensions/ /var/www/html/w/includes/ /var/www/html/w/skins/" # Lock MediaWiki with the config file cp /var/www/html/w/$CONFREADONLY /var/www/html/w/$CONF # Backup database mysqldump --add-drop-table -h $HOST -u $USER -p$PASS --default-character-set=3D$CHARSET $DB | bzip2 -c > /root/backups/mediawiki_db_backup-$DATE.sql.bz2 # Backup files tar $TAROPTS /root/backups/mediawiki_files_backup-$DATE.tgz $FILES # Unlock MediaWiki cp /var/www/html/w/$CONFWRITE /var/www/html/w/$CONF --=20 Karsten 'quaid' Wade, Sr. Analyst - Community Growth http://TheOpenSourceWay.org .^\ http://community.redhat.com @quaid (identi.ca/twitter/IRC) \v' gpg: AD0E0C41 --------------enigF8311D1C9D30CB16D578670F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iD8DBQFQs42C2ZIOBq0ODEERAnLjAJ0aUU0BMOMcKit1CcZJe612a9fuLgCfWemN rb1QSRbAkR8mY/v4fTyQR3w= =YMS9 -----END PGP SIGNATURE----- --------------enigF8311D1C9D30CB16D578670F--