• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

[solved] saving the data of my notebook to a usb-stick - using rsync?

thedighubs

Senior member
good day dear Friends 🙂

i want to install a notebook with a new linux -version that said: i will go from Ubuntu (which is installed at the moment ) to EndeavourOS

the first thing is - to save the data to a USB-stick

question: How can i properly copy all the data from my hard drive to USB flash drive in linux terminal?

i think that the most efficient way is to do this with the command line.
i am not so familiar with the command line - but i am willing to learn.

btw: i tried to safe the data with the dolphin.
well with the Dolphin i have Errors - not all will be copied - why is this so?
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 need to have to work with the rsync command and besides the cp command!?

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

look here:


Code:
ubuntu@T420s:~$ ^C
ubuntu@T420s:~$ $ rsync -av /home/Dokumente/           disk /media/ubuntu/C449-8570/~
$:  Command not found
ubuntu@T420s:~$ $ rsync -av /home/Dokumente/           disk /media/ubuntu/C449-8570/~
$: Command not found
ubuntu@T420s:~$ rsync

btw - note : i have (!!) rsync on the notebook - see below:

Code:
@T420s:~$ rsync
rsync  version 3.2.7  protocol version 31
Copyright (C) 1996-2022 by Andrew Tridgell, Wayne Davison, and others.
Web site: https://rsync.samba.org/
Capabilities:
    64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
    socketpairs, symlinks, symtimes, hardlinks, hardlink-specials,
    hardlink-symlinks, IPv6, atimes, batchfiles, inplace, append, ACLs,
    xattrs, optional secluded-args, iconv, prealloc, stop-at, no crtimes
Optimizations:
    SIMD-roll, no asm-roll, openssl-crypto, no asm-MD5
Checksum list:
    xxh128 xxh3 xxh64 (xxhash) md5 md4 sha1 none
Compress list:
    zstd lz4 zlibx zlib none
Daemon auth list:
    sha512 sha256 sha1 md5 md4

rsync comes with ABSOLUTELY NO WARRANTY.  This is free software, and you
are welcome to redistribute it under certain conditions.  See the GNU
General Public Licence for details.

rsync is a file transfer program capable of efficient remote update
via a fast differencing algorithm.

Usage: rsync [OPTION]... SRC [SRC]... DEST
  or   rsync [OPTION]... SRC [SRC]... [USER@]HOST:DEST
  or   rsync [OPTION]... SRC [SRC]... [USER@]HOST::DEST
  or   rsync [OPTION]... SRC [SRC]... rsync://[USER@]HOST[:PORT]/DEST
  or   rsync [OPTION]... [USER@]HOST:SRC [DEST]
  or   rsync [OPTION]... [USER@]HOST::SRC [DEST]
  or   rsync [OPTION]... rsyn

and so forth

question - why do i face these errors!?

Code:
ubuntu@T420s:~$ ^C
ubuntu@T420s:~$ $ rsync -av /home/Dokumente/           disk /media/ubuntu/C449-8570/~
$:  Command not found
ubuntu@T420s:~$ $ rsync -av /home/Dokumente/           disk /media/ubuntu/C449-8570/~
$: Command not found
ubuntu@T420s:~$ rsync

look forward to hear from you
 
Last edited:
Did you type "$ rsync"? The command "$" is not found. The "$" you see in posts is just a hint that you're to type that at the command line where you're likely to already see a "$". So just type "rsync".

The "disk" instances and the tilde look weird too. I'd go with:

Code:
rsync -av /home/Dokumente/ /media/ubuntu/C449-8570/Dokumente/

Please note that rsync is very picky about the "/" character at the end. I'm sure there's a shorter way to write that, but that way should work.
 
hello dear Ken g6 🙂

first of all: many thanks for the reply and the heads up.


a big big SORRY - i ve provided the wrong data from my notebook Ken,
due to that mistakes i had to apply the paths - and use the correct path

its not like so:
Code:
/home/Dokumente


but like so:
Code:
/home/ubuntu/Dokumente

so this did not work :

Code:
`sudo rsync -av --progress /home/Dokumente /media/ubuntu/C449-8571/`


but that one:
Code:
`sudo rsync -av --progress /home/ubuntu/Dokumente /media/ubuntu/C449-8571/`



btw: i played with the option to get the correct path .. cv:
https://stackoverflow.com/questions/5265702/how-to-get-full-path-of-a-file



see the part of the copied data
Code:
0 100%    0,00kB/s    0:00:00 (xfr#51203, to-chk=5/59613)
Dokumente/new_literatur/theologie/petra_jeckel_schöpfungspoetik_/mirjamjekel_0406.jpg
0 100%    0,00kB/s    0:00:00 (xfr#51204, to-chk=4/59613)
Dokumente/new_literatur/theologie/petra_jeckel_schöpfungspoetik_/mirjamjekel_0407.jpg
0 100%    0,00kB/s    0:00:00 (xfr#51205, to-chk=3/59613)
Dokumente/new_literatur/theologie/petra_jeckel_schöpfungspoetik_/mirjamjekel_0408.jpg
0 100%    0,00kB/s    0:00:00 (xfr#51206, to-chk=2/59613)
Dokumente/new_literatur/theologie/petra_jeckel_schöpfungspoetik_/mirjamjekel_0409.jpg
0 100%    0,00kB/s    0:00:00 (xfr#51207, to-chk=1/59613)
Dokumente/new_literatur/theologie/petra_jeckel_schöpfungspoetik_/mirjamjekel_0410.jpg
0 100%    0,00kB/s    0:00:00 (xfr#51208, to-chk=0/59613)

sent 4.694.015.209 bytes  received 1.024.752 bytes  46.256.551,34 bytes/sec
total size is 4.688.989.106  speedup is 1,00





btw: what was helpful:


How to get full path of a file?
https://stackoverflow.com/questions/5265702/how-to-get-full-path-of-a-file


The following usually does the trick:

` echo "$(cd "$(dirname "$1")" && pwd -P)/$(basename "$1")"`



ken g6 many thanks for the help. this forum is just great

btw: i will mark the thread as solved!! 🙂
have a great day
 
Back
Top