~ubuntu-branches/ubuntu/intrepid/otrs2/intrepid-updates

« back to all changes in this revision

Viewing changes to scripts/backup.pl

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2006-06-20 23:35:00 UTC
  • Revision ID: package-import@ubuntu.com-20060620233500-5qzdidoa53xdigt2
Tags: 2.0.4p01-6
removed the PDF manuals because they will be provided with source code by
a separate package 'otrs2-doc'

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
    exit (1);
145
145
}
146
146
 
 
147
# backup all Symlinks
 
148
if (!system("cd $Home && find -type l -print0 | xargs -0 tar -czf $Directory/SymLinks.tar.gz")) {
 
149
    print "done\n";
 
150
}
 
151
else {
 
152
    print "failed\n";
 
153
}
 
154
 
 
155
 
147
156
# backup Kernel/Config.pm
148
157
print "Backup $Directory/Config.tar.gz ... ";
149
 
if (!system("cd $Home && tar -czf $Directory/Config.tar.gz Kernel/Config.pm Kernel/Config/Files/ZZZA*.pm Kernel/Config/GenericAgen*.pm")) {
 
158
if (!system("cd $Home && tar -czhf $Directory/Config.tar.gz Kernel/Config.pm Kernel/Config/Files/ZZZA*.pm Kernel/Config/GenericAgen*.pm")) {
150
159
    print "done\n";
151
160
}
152
161
else {
156
165
# backup application
157
166
if ($FullBackup) {
158
167
    print "Backup $Directory/Application.tar.gz ... ";
159
 
    if (!system("cd $Home && tar -czf $Directory/Application.tar.gz .")) {
 
168
    if (!system("cd $Home && tar -czhf $Directory/Application.tar.gz .")) {
160
169
        print "done\n";
161
170
    }
162
171
    else {
166
175
# backup vardir
167
176
else {
168
177
    print "Backup $Directory/VarDir.tar.gz ... ";
169
 
    if (!system("cd $Home && tar -czf $Directory/VarDir.tar.gz var/")) {
 
178
    if (!system("cd $Home && tar -czhf $Directory/VarDir.tar.gz var/")) {
170
179
        print "done\n";
171
180
    }
172
181
    else {
176
185
# backup datadir
177
186
if ($ArticleDir !~ /\Q$Home\E/) {
178
187
    print "Backup $Directory/DataDir.tar.gz ... ";
179
 
    if (!system("cd $ArticleDir && tar -czf $Directory/DataDir.tar.gz .")) {
 
188
    if (!system("cd $ArticleDir && tar -czhf $Directory/DataDir.tar.gz .")) {
180
189
        print "done\n";
181
190
    }
182
191
    else {