Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In order to backup large data archives I was wondering if there is a command that allows to split a big file into several smaller chunks of specified sizes.
for example to backup
... continued (sorry my fingers are too big for this keyboard...)
For example to backup a big archive .tar.gz (> 10Go) into several chunks that could be burned on DVDs ?
The other solution for me would be to specify the chunks sizes before creating the archive, I have a folder containing several thousands of files that I compress using a "tar -czvf command". Can I at this time specify that I want several archive files of given sizes ?
A naive question : several files are created, now no problem to backup them but the day I want to unsplit those files how do I proceed ? Shall I simply double click on the first one ?
I made a test on a small file (40Mo) that I splitted into 2 files. When in the directory of these 2 files I use simply the command "cat" nothing happen. When I do :
cat file1 file2
no 'final' file is created, the concatenation scroll on the screen
You could try DAR (see my sig) which allows you to perform a compressed backup (using gzip or bzip2 algorithms) splitted in several files with sizes of your choice. It also has many other handy features, even a backup manager.
I told you in the other related thread. To get good and quick answers, you must make good questions. I am not blaming you, just telling we have not learned to read minds. You should explain the problem and what you want precisely.
Now you know you can split files with the 'split' command. Just read 'man split' to know how to use it. Then you save your and our time.
To join all:
1 - Enter 1st dvd
2 - Copy the file, ie: /my_big_file.tar.gz
3 - Enter next dvd
4 - cat /media/dvd/my_big_file.* >> /my_big_file.tar.gz
5 - goto 3
The >> appends to the end of the file. > overwrites.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.