LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   CentOS 8 Back to Windows 11 (https://www.linuxquestions.org/questions/linux-newbie-8/centos-8-back-to-windows-11-a-4175731331/)

TheMidnighter 11-28-2023 11:57 AM

CentOS 8 Back to Windows 11
 
I am trying to backup my files/folders from CentOS so that I don't lose all the web sites and data that has been collected.

I have been trying to find a way to setup rsync on Windows, and connect CentOS to Windows using rsync but I have had no luck being able to connect to it.

I am using a Virtual Machine Windows 11 to try and back up to, so there's no firewall / security on it.

I honestly do not know if rsync is even the way to go, I was looking at dump as well but read that's old and not as good..

please advise.

TheMidnighter 11-28-2023 11:58 AM

Update; I cannot mount the shared drive because I receive the error:
No match for argument: cifs-utils
Error: Unable to find a match: cifs-utils

I cannot install cifs-utils using dnf, yum is not installed and I cannot get it installed on my machine following any instructions I've found in the last few days.

jmccue 11-28-2023 12:20 PM

I think Windows 11 has some kind of build in Linux (WOL?). Maybe get that running on your Windows Machine and use sshfs(1) to mount your Linux Filesystems.

Also, maybe there is a sshfs(1) application for Windows 11 ? THe other option is Flash Drives formatted on Windows.

masinick 11-28-2023 12:34 PM

Yes, Windows 10 and 11 include ssh according to their article:
https://learn.microsoft.com/en-us/wi.../tutorials/ssh

TheMidnighter 11-28-2023 02:53 PM

I can SSH to my CentOS installation no problem, but I cannot mount my shared hard drive using cifs:

mount: unknown filesystem type 'cifs'

No match for argument: cifs-utils
Error: Unable to find a match: cifs-utils

..
Is there a way I can use my windows machine to log in and copy files to itself? I have tried many, many different methods to try and get cifs to work. (Google, first 2 pages of results or so) - A big issue I ran into there was that YUM does not work on my machine, just dnf - also apt-get doesn't work either.. Not sure if that's normal for CentOS 8 I never used it before.

michaelk 11-28-2023 03:19 PM

apt-get is a package tool for debian and debian based distributions.

Try installing if not already samba, samba-common and samba-client packages. dnf is the latest and greatest package utility that replaced yum.

You can rsync from linux to Windows via samba but permissions and ownership are not "transferable".

TheMidnighter 11-28-2023 05:19 PM

Quote:

Originally Posted by michaelk (Post 6467315)
apt-get is a package tool for debian and debian based distributions.

Try installing if not already samba, samba-common and samba-client packages. dnf is the latest and greatest package utility that replaced yum.

You can rsync from linux to Windows via samba but permissions and ownership are not "transferable".

I tried this.. I get this error for samba, samba-common and samba-client

Quote:

root@greenpassion ~]# dnf install samba
cPanel Addons Production Feed 0.0 B/s | 0 B 00:00
cPanel Plugins project 0.0 B/s | 0 B 00:00
EA4 ( EasyApache 4 ) 0.0 B/s | 0 B 00:00
Extra Packages for Enterprise Linux 8 - x86_64 0.0 B/s | 0 B 00:00
WP Toolkit third parties 0.0 B/s | 0 B 00:00
CentOS Stream 8 - BaseOS 0.0 B/s | 0 B 00:00
WP Toolkit for cPanel 0.0 B/s | 0 B 00:00
Webtatic Repository EL7 - x86_64 0.0 B/s | 0 B 00:00
MySQL 5.7 Community Server 0.0 B/s | 0 B 00:00
CentOS Stream 8 - AppStream 0.0 B/s | 0 B 00:00
MySQL Tools Community 0.0 B/s | 0 B 00:00
Yarn Repository 0.0 B/s | 0 B 00:00
CentOS Stream 8 - Extras 0.0 B/s | 0 B 00:00
MySQL Connectors Community 0.0 B/s | 0 B 00:00
Failed to synchronize cache for repo 'cpanel-addons-production-feed', ignoring this repo.
Failed to synchronize cache for repo 'cpanel-plugins', ignoring this repo.
Failed to synchronize cache for repo 'baseos', ignoring this repo.
Failed to synchronize cache for repo 'appstream', ignoring this repo.
Failed to synchronize cache for repo 'extras', ignoring this repo.
No match for argument: samba
Error: Unable to find a match: samba

michaelk 11-28-2023 05:33 PM

You didn't mention this was a VPS. Doesn't cPanel provide some backup tools?

TheMidnighter 11-29-2023 09:18 AM

Quote:

Originally Posted by michaelk (Post 6467334)
You didn't mention this was a VPS. Doesn't cPanel provide some backup tools?

Oh, my apologies. It is indeed a VPS.
cPanel does not load , for some reason my host doesn't offer assistance with cPanel outside of CentOS 7. So, even if cPanel did backup things - I couldn't access it.

I think the easiest way to accomplish my goal is to backup the data from the CentOS server to my Windows machine.. I just can't figure out how to do that since I can't mount a cifs drive. or any, it seems.

michaelk 11-29-2023 10:04 AM

You could download the RPM package from the CentOS repository but you have to also install all the dependencies.
Can you create an archive of your data and files and then transfer them to Windows?

TheMidnighter 11-29-2023 10:06 AM

Quote:

Originally Posted by michaelk (Post 6467458)
You could download the RPM package from the CentOS repository but you have to also install all the dependencies.

I have tried, but I keep running into random errors regardless of what tactic I use.. Any advice?

Quote:

Originally Posted by michaelk (Post 6467458)
Can you create an archive of your data and files and then transfer them to Windows?

This is the conclusion I came to as well. What I am running into, is I have very limited space on my VPS server - so I am trying to back it up to a Windows machine.
I cannot seem to wrap my mind around how to do this without mounting a shared drive from the Windows folder - I keep getting errors about cifs being an unknown file type.

I was wondering if I can connect to the CentOS machine from Windows and transfer that way, but I can't seem to figure that out either. I can connect via SSH no problem, but downloading to the windows machine.. HOW?! lol my brain is wrinkled

michaelk 11-29-2023 10:18 AM

filezilla or WinSCP are Windows file transfer programs that can connect via sftp which is part of ssh.

TheMidnighter 11-29-2023 02:13 PM

This was resolved by using Putty + pscp on Windows with the command: pscp - P 22 username@host.com:/public_html/backup.tar c:\users\public\dl


All times are GMT -5. The time now is 03:35 PM.