Permalink
Browse files

Use xz for snapshot and module_history

  • Loading branch information...
cavalier38 committed Jan 6, 2013
1 parent b14c8d6 commit 559780d1dd162cbc6a864ef838cb610773168d13
Showing with 3 additions and 3 deletions.
  1. +1 −1 plugins/postbuild-generic.plugin
  2. +2 −2 prog/lvu
@@ -104,7 +104,7 @@ plugin_archive_module()
if [ ! -e /var/state/lunar/module_history ]; then
mkdir -p /var/state/lunar/module_history
fi
- tar -cj --exclude=.svn -C $MOONBASE/$SECTION -f /var/state/lunar/module_history/$MODULE-$VERSION-$(date -u +%Y%m%d).tar.bz2 $MODULE
+ tar -cJ --exclude=.svn -C $MOONBASE/$SECTION -f /var/state/lunar/module_history/$MODULE-$VERSION-$(date -u +%Y%m%d).tar.xz $MODULE
return 2
}
View
@@ -123,7 +123,7 @@ EOF
export_snapshot() {
SNAPSHOT=snapshot-$HOSTNAME-$(date -u +%Y%m%d)
- tar cjfP "/root/$SNAPSHOT.tar.bz2" $CONFIG_CACHE $MODULE_STATUS
+ tar cJfP "/root/$SNAPSHOT.tar.xz" $CONFIG_CACHE $MODULE_STATUS
message "${MESSAGE_COLOR}Snapshot ${DEFAULT_COLOR}${FILE_COLOR}$SNAPSHOT${DEFAULT_COLOR}${MESSAGE_COLOR} created.${DEFAULT_COLOR}"
}
@@ -134,7 +134,7 @@ import_snapshot() {
if [ -f "$1" ] ; then
( mk_source_dir $SOURCE_DIRECTORY )
- tar xj -C $SOURCE_DIRECTORY -f $SNAPSHOT 2> /dev/null
+ tar x -C $SOURCE_DIRECTORY -f $SNAPSHOT 2> /dev/null
cd $SOURCE_DIRECTORY
message "${MESSAGE_COLOR}Restoring lunar configuration${DEFAULT_COLOR}"

0 comments on commit 559780d

Please sign in to comment.