web application

Jonathan Carter jonathan at shuttleworthfoundation.org
Fri Jan 7 14:22:49 UTC 2005


Hi Adi

adi zebic wrote:
> I'm sure that I'm not the only one who regulary lose bookmarks when os
> reinstall, or some other problem became. So I'm just wondering if in
> ubuntu packages existe some web application (ex. php/mysql or
> php/postgreSQL) who can make publish navigator bookmarks.
> That application must be multi user, with database support, public and
> private bookmark publishing, easy add of folder/bookmark ....
> Do you know about that kind of app?

There's no need to loose any of your data. If you tar your /home 
directory (tar is nice especially if you want to copy over to a fat 
drive- because you keep your permissions, etc) and copy it somewhere 
safe, you can copy it back to your new installation and still have all 
your files and settings. I've done this many times while using different 
distributions.

Here's an example of how to do it

jonathan at ubuntu$ cd /home
jonathan at ubuntu$ sudo tar -zcf jonathan.tar.gz jonathan -R
Password:

(enter your user password and press enter)

the -z switch indicates that it should be compressed, the -R switch 
specifies to go into the directories recursively.

jonathan at ubuntu$ cp /home/jonathan.tar.gz /mnt/windisk

(in this case /mnt/windisk is a fat drive (this is obviously fictional 
as I never use any Microsoft filesystems) )

or you could burn it to cdrom:

jonathan at ubuntu$ cdrecord -v -dao -eject /home/jonathan.tar.gz -dev /dev/hdc

(/dev/hdc is your cd-writer device, note that this will not put the file 
CD, but it will put the archive on as raw data)

Then, if you'd like to extract that file back to a newly installed 
system, you just:

jonathan at gnubuntu$ useradd jonathan
jonathan at gnubuntu$ passwd jonathan
jonathan at gnubuntu$ sudo tar -xzf /dev/hdc /home
jonathan at gnubuntu$ sudo chown jonathan:users /home/jonathan -R

and you should have all your settings.

this will extract the raw data from the CD to your home directory.

Or you could keep your /home directory on a seperate partition and just 
make sure your UID's are the same for the user you are using.

-Jonathan




More information about the ubuntu-users mailing list