and try some unauthorized rsync commands… Now try to open a ssh shell on the remote server. path/",no-agent-forwarding,no-port-forwarding,no-pty,no-user-rc,no-X11-forwarding ssh-rsa AAAAB3NzaC1in2EAAAABIwAAABio. path/" ssh-rsa AAAAB3NzaC1in2EAAAABIwAAABio.Īnd for even more security, you can add an IP filter, and other options:įrom="",command="rsync -server -sender -vlogDtprze.iLsf -numeric-ids. Now, just add the command before the key in /root/.ssh/authorized_keys:Ĭommand="rsync -server -sender -vlogDtprze.iLsf -numeric-ids. Rsync -avz -e'ssh -v' -numeric-ids -delete /backup/myserver/ 2>&1 | grep "Sending command"ĭebug1: Sending command: rsync -server -sender -vlogDtprze.iLsf -numeric-ids. To find this command, start rsync adding the -e'ssh -v' option: To solve it, you can use the command="" directive in the authorized_keys file to filter the command. Problem: you will allow to do anything on, where just read only access on the directory is sufficient. To do the backup, you have to be root on the remote server, because some files are only root readable.
You have 2 systems and you want to set up a secure backup with rsync + SSH of one system to the other.ī# rsync -avz -numeric-ids -delete /backup/myserver/
Ssh into gparted livecd free#
That’s it! Your system should be working on the new computer now.įeel free to comment if you encounter problems.
Ssh into gparted livecd install#
Then install grub in the Master Boot Record of your hard drive, and update grub config file (with the new uuids…): We will use a chroot (changed root environment) to be able to call the grub install inside the migrated system.įirst, bind mount some system directories needed by grub, then chroot: umount, unplug and remount the USB disk on the target system.įor each partition (including swap), replace the first field with the new UUID or LABEL (it’s straightforward with LABELs):.Mount the USB partition on source system ( mount /dev/sdbX /mnt/usb).Prepare a USB drive with a BIG ext4 partition. What is good with rsync is that you can stop and restart the transfer whenever you want. You may also add -A if you are using acls. a will preserve many file attributes like owner and permissions, -H will preserve hardlinks if any, -X will preserve extended attributes like setuid. Rsync -avHX SOURCE_IP::all/mnt/slash/ /mnt/slash/ĭon’t forget ‘/’ at the end of paths.
On the target computer, you will need a tool to partition your hard drive, like gparted. Boot source and target machines on live USB/CD You can try over wifi, but it may be slow.ġ. To speed up data transfer: good quality ethernet cables (one cable between the 2 computers is OK), or a usb key/drive with a BIG ext4 partition.Source and target systems must be on the same processor architecture (though transfer from 32bit to 64bit should work). The following method should work for any Linux distribution (Ubuntu, Debian, Manjaro, Archlinux, Fedora…). Here a list of packages on the live image that I have complied, listing what I’ve found in the nix files in the Git repo.After searching a bit I could not find a simple and good howto to do that. The packages in the live image doesn’t affect the installation itself if you want it, you will have to add in either environment.systemPackages or nix-env.
Ssh into gparted livecd full#
It’s just that right next to the download link for the Live CD iso there is a link to SHA256SUM for that iso so I wondered why not also a link to a list full of newline-separated names of packages installed on that iso.