o0O0o.o0O0o
08-06-2009, 01:12 AM
I have folder called .temp in
/backups/full/user/.temp
I have the script which puts database backups and home directory backup(.tar.gz) in that .temp folder.
Now from those two backups i want to create a third full.tar file which will contain those two backups.
The problem is if i use
tar -cf full.tar /backups/full/user/.temp/*
then when i extract my archive , then i have the following directory structure
I got all the folder above like
folder bakcups -->full -->user-->.temp and then the backups
Is there any way that my tar file only contain files in .temp and not all the folders.
/backups/full/user/.temp
I have the script which puts database backups and home directory backup(.tar.gz) in that .temp folder.
Now from those two backups i want to create a third full.tar file which will contain those two backups.
The problem is if i use
tar -cf full.tar /backups/full/user/.temp/*
then when i extract my archive , then i have the following directory structure
I got all the folder above like
folder bakcups -->full -->user-->.temp and then the backups
Is there any way that my tar file only contain files in .temp and not all the folders.