- My Linux servers do have small hard disks, I can not create an archive there.
- Is there a way to zip while doing a scp from a Windows system?
- Please keep in mind, I want to use scp (or other tools) on the Windows system and GET the data into an archive with kept rights and everything.
- I do NOT want to scp from the Linux system to the Windows system.
[Solved] backup Linux system to Windows system
[Solved] backup Linux system to Windows system
Last edited by ZanyScum on 2025-01-24 23:32, edited 1 time in total.
- ruwolf
- Posts: 940
- Joined: 2008-02-18 05:04
- Location: Banovce nad Bebravou
- Has thanked: 95 times
- Been thanked: 74 times
Re: [Software] backup Linux system to Windows system
I do not see any reason why it would not work.
There should be dozens of options:
There should be dozens of options:
- One of the easiest ways is to install Cygwin.
- You probably can use Windows Subsystem for Linux.
- Another option is to use WinSCP and, for example, this extension:
WinSCP.net: Extensions: Archive remote files to ZIP archive, download it, and optionally extract it - There is also plugin for FAR file manager for SFTP/SCP (and for WinSCP, too).
- ⋮
Re: [Software] backup Linux system to Windows system
These are some good ideas. Thank you. I'll try the one with WinSCP first because I have NO idea how to even start with the Windows Subsystem for Linux.
I am such a liar, while I wrote the above, I googled for Cygwin, liked the idea and just downloaded it.
If I get somewhere, I'll probably tell here.
I am such a liar, while I wrote the above, I googled for Cygwin, liked the idea and just downloaded it.
If I get somewhere, I'll probably tell here.
Re: [Software] backup Linux system to Windows system
It worked, I think.
Here is what I did:
(The tests were successful, the real backup is still running...wish me luck)
Here is what I did:
- install Cygwin
- find your home directory using the "Cygwin Terminal"
Code: Select all
cygpath -w ~
- copy/link to the .ssh directory your config and your id_rsa files
- test the backup with something small
Code: Select all
ssh YOUR-SERVER tar czf - -C / etc/ssl > `date +%FT%T`-YOUR-SERVER-TEST.tar.gz
- do the real backup
Code: Select all
ssh YOUR-SERVER tar czf - -C / var/backup/daily.0 > `date +%FT%T`-YOUR-SERVER.tar.gz
(The tests were successful, the real backup is still running...wish me luck)