![]() Put all the files into a *.tgz file (replace output_path with the directory that the archive should be put in):Ĭd /tmp/tracsvn_backup tar -czvf output_path/proj_dirname_$(date +"%Y%m%d%H").tgz *.This can be achieved as follows (replace proj_dirname with the directory name of the project): Since the Trac and SVN servers are functionally separate, a combined backup is, in fact, two separate backup operations. Su wget wget wget wget chmod 766 devserver-* Backup of a Trac Project and It's SVN Repository Thus, downloading and installing these scripts would be achieved as follows: This can be achieved via the chmod command. The scripts must all be marked as executable.Devserver-backupall.sh and devserver-restoreall.sh require the other two scripts to be present in the same directory be sure to download them all.Either run this from within the directory containing all the *.tgz files created by devserver-backupall.sh, or specify the directory containing the backups, e.g.:ĭevserver-restoreall.sh /home/user/backups/tracsvn_200812311105.tgz This will restore all Trac projects and SVN repositories from a backup. Restore all projects: devserver-restoreall.sh.It does require some disk space in the /tmp directory in order to temporarily store intermediate files. These scripts backup/restore to/from *.tgz archives. ![]() ![]() IMPORTANT: Those performing a backup to a remote server may prefer to use the scripts presented here. It is also an idea to schedule automatic daily, weekly, and/or monthly backups via crontab, or to use an online backup service (I will be examining those in more detail later). These scripts reduce the whole process to single commands. However, it is highly recommended that the provided scripts are used instead. Procedures to backup and restore data from projects are given below. Given that keeping this data is critical to a software project's existence (and possibly the livelihood of the company/induviduals that own it), it is worth protecting. The repository holds more than just a backup of the developer files, it holds a record of every change that anyone has ever made to the source files.The Trac project pages can also hold important information. Whilst the SubVersioN (SVN) repository acts as a backup in many ways, it is still worth making a backup. Backup and Restore of Trac and Subversion
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |