Project

General

Profile

« Previous | Next » 

Revision 9090

Added by Jing Tao over 9 years ago

Add the option -h for tar command in order to follow the link.

View differences:

backup-metacat.sh
72 72
su - postgres -c "pg_dumpall | gzip > $ARCHDIR/metacat-postgres-backup.gz"
73 73

  
74 74
# Backup the data files
75
tar czf $ARCHDIR/datafiles-backup.tgz --exclude=$ARCHROOT $DATADIR
75
tar czhf $ARCHDIR/datafiles-backup.tgz --exclude=$ARCHROOT $DATADIR
76 76

  
77 77
# Backup the apache configuration files
78 78
tar czhf $ARCHDIR/apache-config-backup.tgz $APACHECONF $KEYLOCATION $CERTLOCATION
......
88 88

  
89 89
# Tar up the archive and copy it to archive media
90 90
cd $ARCHROOT
91
tar czf $ARCHDIR.tgz $ARCHNAME
91
tar czhf $ARCHDIR.tgz $ARCHNAME
92 92

  
93 93
# Clean up the temp files
94 94
rm -rf $ARCHDIR

Also available in: Unified diff