LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-28-2023, 11:57 AM   #1
TheMidnighter
LQ Newbie
 
Registered: Nov 2023
Posts: 7

Rep: Reputation: 0
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.
 
Old 11-28-2023, 11:58 AM   #2
TheMidnighter
LQ Newbie
 
Registered: Nov 2023
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 11-28-2023, 12:20 PM   #3
jmccue
Member
 
Registered: Nov 2008
Location: US
Distribution: slackware
Posts: 703
Blog Entries: 1

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
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.

Last edited by jmccue; 11-28-2023 at 12:21 PM. Reason: spelling
 
Old 11-28-2023, 12:34 PM   #4
masinick
Member
 
Registered: Apr 2002
Location: Greenville, SC
Distribution: Debian, antiX, MX Linux
Posts: 639
Blog Entries: 16

Rep: Reputation: 104Reputation: 104
Yes, Windows 10 and 11 include ssh according to their article:
https://learn.microsoft.com/en-us/wi.../tutorials/ssh
 
Old 11-28-2023, 02:53 PM   #5
TheMidnighter
LQ Newbie
 
Registered: Nov 2023
Posts: 7

Original Poster
Rep: Reputation: 0
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.
 
Old 11-28-2023, 03:19 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
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".
 
Old 11-28-2023, 05:19 PM   #7
TheMidnighter
LQ Newbie
 
Registered: Nov 2023
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
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
 
Old 11-28-2023, 05:33 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
You didn't mention this was a VPS. Doesn't cPanel provide some backup tools?
 
Old 11-29-2023, 09:18 AM   #9
TheMidnighter
LQ Newbie
 
Registered: Nov 2023
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
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.
 
Old 11-29-2023, 10:04 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
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?
 
Old 11-29-2023, 10:06 AM   #11
TheMidnighter
LQ Newbie
 
Registered: Nov 2023
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
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 View Post
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
 
Old 11-29-2023, 10:18 AM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,761

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
filezilla or WinSCP are Windows file transfer programs that can connect via sftp which is part of ssh.
 
Old 11-29-2023, 02:13 PM   #13
TheMidnighter
LQ Newbie
 
Registered: Nov 2023
Posts: 7

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NFS on CentOS 6 can talk to Centos 5 but not Centos 6 clients deathsfriend99 Linux - Server 2 11-08-2013 02:33 PM
Boot to windows from centos, boot from centos to windows brettmehaffey Linux - Newbie 12 08-19-2009 05:25 PM
Connecting 2 linux computer back to back with cross cable. michalng Linux - Networking 8 02-11-2009 07:00 AM
Back button to Go Back? javamdk Linux - Newbie 2 07-08-2004 11:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration