matasimi
asked on
Create tar backup from file list
Hi,
I have a text file with ~200 files and folders names and complete paths of files in Linux (Debian Lenny) system that I want to backup to .tar archive.
FolderAndFilesList.txt:
/etc/resolv.conf
/etc/init.d/xdaemon.sh
/opt/conf/
Which GUI o CLI software can I use to create backup archive like this:
tar -cpf /media/backups/BackupFile. tar xxxxunknownoption < FolderAndFilesList.txt
Thank you.
I have a text file with ~200 files and folders names and complete paths of files in Linux (Debian Lenny) system that I want to backup to .tar archive.
FolderAndFilesList.txt:
/etc/resolv.conf
/etc/init.d/xdaemon.sh
/opt/conf/
Which GUI o CLI software can I use to create backup archive like this:
tar -cpf /media/backups/BackupFile.
Thank you.
I think you can do with "tar cvf yourarchive.tar -l yourfilelist
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It is works!
Thank you!
Also I found that tar command has an option "-T":
tar -cpf BackupFile.tar -T FolderAndFilesList.txt"
Thank you!
Also I found that tar command has an option "-T":
tar -cpf BackupFile.tar -T FolderAndFilesList.txt"
Well that's an even better solution. I'm ashamed I missed it.