- Create disk image file
8388608 is the size of the filesystem we will want, in kiloBytes. This one will be 8GB.
dd if=/dev/zero of=disk.image bs=1024 count=8388608
- Format to ext3
mkfs.ext3 -F -b 1024 disk.image 8388608
- Mount
mount -t ext3 -o loop disk1.image /tmp/disk1
- Sync the remote filesystem to the locally mounted image
rsync -avz user@host.com:/ .
Remote backup to image with rsync
Reply