Mailinglist Archive: opensuse-kde (107 mails)
| < Previous | Next > |
Re: [suse-kde] Backups
- From: Jonathan Lim <jonathan.lim@xxxxxxxxxxxxxx>
- Date: Mon, 10 Jun 2002 15:18:33 +0100
- Message-id: <200206101518.33548.jonathan.lim@xxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 08 June 2002 11:35 pm, Jose Thadeu Cavalcante wrote:
> How can I do to backup and restore my e-mails, addressbook and bookmarks.
I cron a job to backup key directories. Then you have tarballs you can put
onto floppies/CDs/tapes/other servers/etc. Feel free to use the script below.
- --
#!/bin/bash
## Jonathan Lim 2002-01-23
## This file will backup the given directories in the user's home directory
## usage: backup.sh Mail .kde work programming
## Archive directory
archive_dir="$HOME/archive"
## Determine date
datestamp=$(date +%Y%m%d);
## Loop through all the directories passed
for dir in $@
do
thisdirectory="$HOME/$dir"
if [ -d "$thisdirectory" ]
then
cd $HOME
tar cvzf $archive_dir/${dir#\.}.$datestamp.tar.gz $dir
fi
done
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9BLU5AbE84SqoMZERAty3AJ9vS3wu13ftGGOEKlQX+lnljIreCACfY7RS
oda//oDv0PkuYE7wen3zQl4=
=m+8/
-----END PGP SIGNATURE-----
Hash: SHA1
On Saturday 08 June 2002 11:35 pm, Jose Thadeu Cavalcante wrote:
> How can I do to backup and restore my e-mails, addressbook and bookmarks.
I cron a job to backup key directories. Then you have tarballs you can put
onto floppies/CDs/tapes/other servers/etc. Feel free to use the script below.
- --
#!/bin/bash
## Jonathan Lim 2002-01-23
## This file will backup the given directories in the user's home directory
## usage: backup.sh Mail .kde work programming
## Archive directory
archive_dir="$HOME/archive"
## Determine date
datestamp=$(date +%Y%m%d);
## Loop through all the directories passed
for dir in $@
do
thisdirectory="$HOME/$dir"
if [ -d "$thisdirectory" ]
then
cd $HOME
tar cvzf $archive_dir/${dir#\.}.$datestamp.tar.gz $dir
fi
done
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE9BLU5AbE84SqoMZERAty3AJ9vS3wu13ftGGOEKlQX+lnljIreCACfY7RS
oda//oDv0PkuYE7wen3zQl4=
=m+8/
-----END PGP SIGNATURE-----
| < Previous | Next > |