Following Linode's guide to Copy a Disk Over SSH
:
ssh root@xx.xx.xxx.xx "dd if=/dev/sdX " | dd of=/PathToLocalLocation/server.img
Where xx.xx.xxx.xx
is your server's IP, sdX
- X
stands for your drive's assigned letter, and also you must state the image
's name = server.img
I ran into this issue (on my local computer):
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
I conducted a long search with many results which none of worked for Lish
nor were they a complete solution.
I couldn't set locales
on the Lish command line
no matter what I did....
All the answers out there are regarding command-line
on local or servers, not rescue-mode
....
Ideas?
LC_ALL=C
which should work everywhere. It effectively disables any Unicode support and various other locale-dependent behaviors but time travel back to the previous millennium is probably acceptable for this particular use case.bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
ssh
is unsuallytconfigurel to "transport" your local locale settings to the remote, too.Lish
mounts a rescue partitionFinnix
based and does not have locales installed, hence sendingLC_ALL=C
viassh
would not help. This fix, coming fromlinode
guide resolves this issue