Hi,
I want to make sure my server is completely backed up.
this is what I do:
This is the script:
#!/bin/bash -x
CNFL=/var/atlassian/application-data/confluence
CNFL_BACKUP=/home/cnflBackup/`date +%Y%m%d-%H%M%S`
rm -rf $CNFL/temp/*
mkdir $CNFL_BACKUP
mysqldump --defaults-file=~/.my.conf confluence |gzip > $CNFL_BACKUP/confluence.mysql.data.gz
tar -cjvf $CNFL_BACKUP/data.bzip $CNFL > $CNFL_BACKUP/homedir.status
[root@CentOS-7 elad]# cat backup.sh
#!/bin/bash -x
CNFL=/var/atlassian/application-data/confluence
CNFL_BACKUP=/home/cnflBackup/`date +%Y%m%d-%H%M%S`
###rm -rf $CNFL/temp/*
mkdir $CNFL_BACKUP
mysqldump --defaults-file=~/.my.conf confluence |gzip > $CNFL_BACKUP/confluence.mysql.data.gz
tar -cjvf $CNFL_BACKUP/data.bzip $CNFL > $CNFL_BACKUP/homedir.status
what about backing up /opt/atlassian/confluence ?
I also edited server.xml and web.xml - don't we need to backup these files and folders?
Hi Elan,
The preferred method is to us the Production Backup Strategy, which is to use the native backup tools provided by your database, as below:
Atlassian recommends establishing an alternative database backup strategy:
Once this is in place, disable the daily backups through the scheduled jobs feature via 'Administration Console > Administration > Scheduled Jobs'.
We want to stress that creating these two backups is better than having a Confluence XML backup. It is more robust and far more reliable for large production instances. You will be able to restore your whole site, including all data, attachments and configuration information intact with these two backups. See Restoring Data from other Backups.
Backing up the whole home directory is the safest option, however most files and directories are populated on startup and can be ignored. At minimum, these files/directories must be backed up:
The rest of the directories will be auto-populated on start up. You may also like to backup these directories:
The location of the home directory is configured on installation and is specified in the confluence.init.properties
file. For installation created with the automatic installer the default locations are:
C:\Program Files\Atlassian\Application Data\Confluence
/var/atlassian/application-data/confluence
For Clustered instances only: Backing up the whole shared home directory is the safest option, however some files and directories are populated at runtime and can be ignored:
I do hope this information is helpful to you.
Sincerely,
Chuck Talk | Confluence Support
Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Everything looks good. There are some configurations in /opt/atlassian/confluence/confluence/WEB-INF/classes that you may want to consider backing up if they have been modified.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.