NullSpin
September 30th, 2003, 00:00
I'm looking for a lightweight gui file archive utility. I realize both kde and gnome have one built in. Are there any other options? I'm currently using fluxbox on 4.8. Although I was playing with the 4.9 beta abit. Any thoughts would be appreciated, except......man tar :x

soup4you2
September 30th, 2003, 01:28
i've never used any X archiving tools .. lucky for you the cmd line is easy.

creating a tar.gz file is simple..

$> tar cvvpzf filename.tar.gz /directory*

unarchiving it

$> tar -xzvf filename.tar.gz

sometimes you will run into tar files.. then just run

$> tar -xvf filename.tar

or if you want to make a bzip just replace the 'z' with a 'b'

and if you want to encript it afterwards..

$> openssl enc –blowfish –in filename.tar.gz –out filename.bf

To unencrypt the file you would issue:

$> openssl enc –d –blowfish < filename.bf | tar –xzf –

elmore
September 30th, 2003, 01:52
NullSpin-

Hey Welcome to Screaming Electron! I went searching for lightweight gui's tonight. I found one in the ports collection. xtar, I'm compiling it right now but I believe it only extracts. It doesn't create.

It's located in /usr/ports/misc/xtar

KrUsTy! pointed out the website for me in irc, looks like it's pretty old. Anyways, here it is:

http://www.stella-consulting.ltd.uk/xtar/

*UPDATE*

So I got that xtar compiled and working now, it's a nice tarball viewer, you can extract files from it and manipulate the tarballs. It's big limitation seems to be the fact that you cannot create tarballs. Anyways I hope this can help you out.

Strog
September 30th, 2003, 02:22
BRU (www.tolisgroup.com/) is a good gui backup program that is very flexible. It isn't free however but you can get the workstation version fairly inexpensively.

I like to use flexbackup (www.flexbackup.org) at work. While it's not a gui, it is real easy to use and it can use several archivers on the back end. The port version is a bit old and the newer ones have backup sets and other goodies. There's a FreeBSD package on the website and it's easy to update the port yourself if you want that route.

There's quite a few projects out there but many aren't very complete or don't come close to lightweight. I hope you find one that works for you.

zh
September 30th, 2003, 12:21
Why to have GUI for backups? Most important (and usual) solution is to do
them scheduled, by some vron job or similar.
Better search for:
- how to do full backups
- how to do incremental backups
- how to backup different platforms - win,linux,*bsd
- how to do network backups
The GUI is just not in the first 100 things needed ;)
Some points:
http://bsdnews.org/01/rsync_backups.php
http://bsdnews.org/02/rsync_windows.php
http://www.linux-backup.org/

And if you want to spend a little money: http://www.mirra.com/corp3/product/index.html

soup4you2
September 30th, 2003, 13:30
[code:1:1fbe1cf0d1]
#!/bin/sh

# tecback - 01/2003 Karsten Kruse www.tecneeq.de
#
# * holdbackup - age of the oldes backup you want to keep
# * tar - full path to a GNU-tar, min. vers. 1.13.25
# * basedir - full path to the script
# * include - backup these dirs
# * exclude - exclude these dirs/files
# * compression - do you want compression?
# bz2=bzip2
# gz=gzip
# keine=no compression
# * workdir - Where to place the backups

# Script modified by Soup4you2

holdbackup=62
tar=/usr/bin/tar
basedir=/home/backup
include="/etc /root /home"
exclude="/home/alex/backup /home/karsten/mp3"
compression="bz2"
workdir=/mnt/backups

###### DO NOT EDIT BELOW ##################################################
##
bomb() { echo ERROR: $1 ; exit 1 ; } # bail out

stampfile=${workdir}/.stampfile
incrementlist=/tmp/tecback_list.$$
hostname=`hostname -s`
monthday=`date +%d`
epoch=`date +%yy%mmo%dd_%Hh%Mm%Ss`

[ -x $tar ] || bomb "$tar not found"
if [ ! -d $workdir ] ; then
mkdir -p $workdir || bomb "cannot create $workdir"
fi

for i in $include ; do
if [ -d $i ] ; then
includeline="$i $includeline"
else
echo "$i in \$include does not exist, ignored"
fi
done
for i in $exclude $workdir ; do
if [ -d $i ] ; then
ignoreline="--exclude=$i/* $ignoreline"
else
echo "$i in \$exclude does not exist, ignored"
fi
done

# kompression
case $compression in
bz2|bzip2) endung="tar.bz2"
compcom="-j"
;;
gz|gzip) endung="tar.gz"
compcom="-z"
;;
keine|none) endung="tar"
compcom=""
;;
*) bomb "$compression in \$compression is not supported"
esac

# needed since find, even if it has not found a file, exits with 0
fullbackups=0
for i in `find $workdir -type f -name "${hostname}_full*" -print` ; do
fullbackups=1
done

# full or incremental backup?
if [ `date +%d` = 01 -o ! -f $stampfile -o $fullbackups = 0 ] ; then
kind=full
else
kind=increment
fi

# set title of backup
title=${workdir}/${hostname}_${kind}_${epoch}.${endung}

# here we do some work
if [ $kind = increment ] ; then
last_backup=`ls -l $stampfile | awk '{print $7"."$6".",$8}'`
echo "==> performing incremental backup (new files since $last_backup)"
find $includeline -type f -newer $stampfile -print > $incrementlist
$tar -c $compcom -p $ignoreline --file $title --files-from=$incrementlist
touch $stampfile
rm $incrementlist
elif [ $kind = full ] ; then
echo "==> performing full backup ..."
$tar -c $compcom -p $ignoreline --file $title $includeline
touch $stampfile
fi

# delete old backups
find $workdir -type f -name "${hostname}_*" -ctime +$holdbackup -exec rm {} \;
echo "==> ... done"
[/code:1:1fbe1cf0d1]

NullSpin
September 30th, 2003, 17:47
Thanks everyone for the replies. I appreciate it. I had gone through all the 'archiver' ports trying to find one that suited my needs but just didn't see it. Xtar looks like it will fill the bill.
I simply want to be able to extract things on the fly with out bringing up a terminal window.
Again appreciate the answers and there tone. I would be crispy at bsdforums.

Strog
September 30th, 2003, 18:25
NullSpin:
I would be crispy at bsdforums.

Don't worry, there's still time for that. :twisted:


I think the friendly, community attitude comes through here even though we all get a little bent out of shape once in a while.

I looked at xtar and thought it was mostly worthless for what I thought you wanted. I figured you wanted either a way to create archive files or maybe something for tape backups. Hopefully all this side discussion helps someone else that might want those things.