ssh and backup usage with SystemRescueCD Linux
I posted recently on SystemRescueCD but got no answer to two specific questions. Probably, these were hided. Here explicitly.
Trying to edit Debian amd64 jessy raid mirror, two disks, with SystemRescueDCx86-4.2.0, my raid is recognized perfecly: francesco@gig64:~$ df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg1-root 922M 839M 35M 97% / udev 10M 0 10M 0% /dev tmpfs 1.6G 860K 1.6G 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 3.2G 80K 3.2G 1% /run/shm /dev/mapper/vg1-home 770G 271G 461G 37% /home /dev/mapper/vg1-opt 9.1G 3.1G 5.6G 36% /opt /dev/mapper/vg1-tmp 5.4G 12M 5.1G 1% /tmp /dev/mapper/vg1-usr 55G 6.4G 46G 13% /usr /dev/mapper/vg1-var 19G 2.5G 15G 15% /var none 4.0K 0 4.0K 0% /sys/fs/cgroup francesco@gig64:~$ root@gig64:/home/francesco# cat /etc/fstab proc /proc proc defaults 0 0 /dev/mapper/vg1-root / ext3 errors=remount-ro 0 1 /dev/mapper/vg1-home /home ext3 defaults 0 2 /dev/mapper/vg1-opt /opt ext3 defaults 0 2 /dev/mapper/vg1-tmp /tmp ext3 defaults 0 2 /dev/mapper/vg1-usr /usr ext3 defaults 0 2 /dev/mapper/vg1-var /var ext3 defaults 0 2 /dev/mapper/vg1-swap none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0 root@gig64:/home/francesco# Before editing with resize2fs and lv managing, I want to backup vg1-root and vg1-home on another linux machine on my internal network. I would like to have explicitly the commands for the ssh code, either scp or rsync. I can give a pass and a group/user to SystemRescueCD, however neither proved of help and the manual to this regard is cryptic. thanks chiendarret |
I suggest dump for backups of ext* filesystems. Send output to stdout and transfer to another host with ssh.
Something like Code:
dump 0f - / | dd bs=64k | ssh foo@other 'cat > dump0_root_deb_gig64' |
All times are GMT -5. The time now is 07:33 PM. |