X-Git-Url: https://git.sthu.org/?p=sitarba.git;a=blobdiff_plain;f=shbackup;h=cc323c50f71fe37ad77a419188c589ae77a78cc2;hp=ca00a1305bf04a3d6178cbd7ea1c24c244573a8b;hb=07fa9c2763775fe326e5aec08f8f4ee570072f5b;hpb=62a41f19c5f25566b02fc5973510e1a1e4baa8d6 diff --git a/shbackup b/shbackup index ca00a13..cc323c5 100755 --- a/shbackup +++ b/shbackup @@ -65,7 +65,7 @@ class Config: def __str__(self): return "[name: " + self.name + ", dirs: " + str(self.dirs) + "]" - formats = ["tar.gz", "tar.bz2", "tar.xz" ] + formats = ["tar", "tar.gz", "tar.bz2", "tar.xz" ] # Filename where checksum of config is saved checksumfn = "checksum" @@ -380,12 +380,12 @@ def printUsage(): print(" prune prune outdated/old backups") print("") print("Options:") - print(" -C use given configuration file") + print(" -h, --help print this usage text") + print(" -c, --conf use given configuration file") print(" default: /etc/shbackup.conf") - print(" -m, --mode override mode: full, diff, or incr") print(" -e, --epoch force to create backup for given epoch:") print(" year, month, week, day, hour, sporadic") - print(" -h, --help print this usage text") + print(" -m, --mode override mode: full, diff, or incr") if __name__ == "__main__": @@ -404,7 +404,7 @@ if __name__ == "__main__": printUsage() exit(0) - elif opt in ["-C", "--config"]: + elif opt in ["-c", "--conf"]: i += 1 conffn = sys.argv[i]