copy the data from the whole computer to a usb-stick

dhubs

Member
Joined
Nov 5, 2024
Messages
59
Reaction score
19
Credits
839
good evening dear friends,:)

well i want to install a Notebook with a new and fresh linux-install.

Therefore: i have a big big USB-Stick and i want to save all the Folders of the NB to that.
As i am not sooo familiar i have a little question here: how to do the whole process of copying to the USB stick using Linux and the command line: Yes i want to use the commandline methods only!

what are the best methods, ways and commands to do this!?

what is aimed: i need to save 'all the data' with that i mean - All the files in my USERS HOME?
I do not want to trying to do some sort of clone/backup of my entire OS?

btw and on a sindenote: i tried to safe the data with the dolphin. but: i recognized that with the Dolphin i have funny errors - not all will be copied - why is this so? i guess that's because dolphin is working on "user permission". but - we require root permission. So the dolphin way - failed.

So back again to the process to do it on tt4: Well again what is aimed: i am trying to simply dismantling the whole os for the purpose of the complete reinstalling the whole os

Do you think that i can do this with the rsync command and besides the cp command!?

some of my friends recommended me that rsync may be some of the appropiate ways and methods for backup-jobs.

idea and approach: well is it possible, to backup DemoDir to my usb drive, I can do this:


Code:
$ rsync -av /home/butch/DemoDir/ /media/butch/A665-37EF/~

which is expected to send incremental file list

Code:
created directory /media/butch/A665-37EF/~

./

file1

file2

file3


sent 338 bytes  received 155 bytes  809.00 bytes/sec

total size is 0  speedup is 0.00

well what do you think - can i go like so!?

well i think we can run them with sudo to run command as root.

look forward to hear from you - regards
:)
 
Last edited:


Code:
sudo cd /source_directory
sudo cp -rvf * /destination_directory
 
good evening dear @dos2unix

many thanks for the quick reply and for sharing your ideas and thoughts.


Code:
sudo cd /source_directory

sudo cp -rvf * /destination_directory

i will triy this out - many many thanks
this is awesome!!! :)
 


Members online


Latest posts

Top