I accidentally rsynced .thunderbird
to user@host
instead of to user@host:/home/user
.
Where is .thunderbird
now? Is there a good way to search for the folder?
I accidentally rsynced .thunderbird
to user@host
instead of to user@host:/home/user
.
Where is .thunderbird
now? Is there a good way to search for the folder?
It's in the directory where you ran the command:
If you did
rsync .thunderbird user@host:
and notrsync .thunderbird user@host
(note the:
), then the directory was copied to the home directory ofuser
onhost
(so/home/user
would usually be redundant inuser@host:/home/user
). Without the:
, the second argument is just the path to a target directory on the local system.The same applies to
scp
.Note that
rsync
does not delete source files unless you tell it to. So.thunderbird
is still where it was, and a new copy is made wherever it was copied to.Also note that
rsync
has different behaviour based on whether the source directory had a trailing/
. These two are different:In the first case, the
.thunderbird
directory is copiedsomewhere
, but in the second case, the contents of.thunderbird
are copied (so you won't seesomewhere/.thunderbird
, but if there was a.thunderbird/foo
, you'd seesomewhere/foo
instead ofsomewhere/.thunderbird/foo
).