LinuxQuestions.org
Review your favorite Linux distribution.
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 08-16-2020, 10:32 PM   #31
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542

What you want for that is rsync. It was written just for what you want to do. It syncs the contents of one folder to another. It can be configured to only transfer changed files, so the first run will be long, and copy every file in the source folder. Subsequent runs will be quicker, depending on how many files have been changed. Rsync is usually run through a crontab, at a time when nothing else is going on. It can log everything if you want, or whatever you want. In a terminal, run
Code:
man rsync
and you will get the parameters to use, or perhaps easier, there are several websites that explain rsync. AFAIK it only syncs one source folder per run, so you may need to run it multiple times to get all of them synced, but one run can do it if they are are all under one upper level folder. Study the documentation and come back if you need more help.

As for creating an empty file for the clamav log, that is necessary only if you use the >> redirector. If you use only > the file will be created for you. Don't ask me why, that's just the way it is. For knowing where to look, run clamav and tell it to report only errors. I'm not really familiar with it, because I don't bother with a virus checker. It just slows things down and provides no real advantages unless you're running Windows.

Last edited by sgosnell; 08-16-2020 at 10:35 PM.
 
Old 08-17-2020, 05:34 AM   #32
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,497
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
Quote:
Originally Posted by alex4buba View Post
I am a 75 years "Young" retired guy... I have learned a lot in my journey, by making mistakes, you only make them if you do things....
Snap! But I'm not a guy.

btw Linux shells are nothing like .bat files. That's like comparing a high-powered rifle with a toy pop gun. When I first started using DOS, I was horrified by the crudeness of the command language compared with the mainframe shells I was used to. No variables except command line parameters, no loops, no branches, no control statements of any kind except a pause for optional abortion.

Linux shell languages like bash include all of these things. They are really programming languages in their own right and the scripts written in them can run completely unattended, carrying out their own tests and making their own choices. In fact that's the way traditional Linux systems start up. Everything is done by scripts that you can read and study.

Last edited by hazel; 08-17-2020 at 05:43 AM.
 
1 members found this post helpful.
Old 08-18-2020, 04:07 AM   #33
Hermani
Member
 
Registered: Apr 2018
Location: Delden, NL
Distribution: Ubuntu
Posts: 261
Blog Entries: 3

Rep: Reputation: 113Reputation: 113
Quote:
Originally Posted by hazel View Post
btw Linux shells are nothing like .bat files. That's like comparing a high-powered rifle with a toy pop gun. When I first started using DOS, I was horrified by the crudeness of the command language compared with the mainframe shells I was used to. No variables except command line parameters, no loops, no branches, no control statements of any kind except a pause for optional abortion.
Of course Hazel has a point and I will never ever try to compare anything from the DOS world to Linux anymore
 
  


Reply

Tags
20.04, ubuntu 18.04, virus antivirus


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Do I need a firewall and virus protection for Ubuntu? adhinsley Linux - Newbie 31 10-13-2009 10:56 AM
LXer: Virus Protection With F-PROT Antivirus On Ubuntu Feisty Fawn LXer Syndicated Linux News 0 09-24-2007 02:10 PM
LXer: Virus Protection With AVG Antivirus On Ubuntu Feisty Fawn LXer Syndicated Linux News 0 09-12-2007 06:21 PM
Boot virus or Anti-Virus? AVG Free Anti-Virus Software problems SparceMatrix Linux - Security 9 08-02-2004 02:35 PM
virus protection p_murugappan Linux - General 1 07-11-2001 08:40 PM

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

All times are GMT -5. The time now is 12:49 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