The owner at the Office Supply Start-up company is concerned about losing critical files in the structure you built for them. She wants you to create a script that will automate a periodic file backup to a directory called backup on the local drive.For Windows, these are the important directories:To Backup:c:\Usersc:\Payrollc:\CoFilesBackup up to:c:\BackupFor Linux, these are the important directories:To Backup:/home/Payroll/CoFilesBackup up to:/BackupTo do this, you should create a script that meets the following parameters:User’s home directory is backed up on Tuesday and Thursday nights at midnight EST.Company files are backed up on Monday, Wednesday, Friday nights at midnight EST.Payroll backups occur on the 1st and 15th of each month.Be sure to write both a Windows and Linux script that meets these parameters. Troubleshoot as needed.

Answers

Answer 1

Here are sample scripts for both Windows and Linux that meet the given parameters:

Windows script:

echo off

setlocal

set backupdir=c:\Backup

set today=%DATE:~0,3%

if %today%==Tue (

   robocopy c:\Users %backupdir% /E /MIR

) else if %today%==Thu (

   robocopy c:\Users %backupdir% /E /MIR

)

set /a day=%DATE:~0,2%

if %day%==1 (

   robocopy c:\Payroll %backupdir% /E /MIR

) else if %day%==15 (

   robocopy c:\Payroll %backupdir% /E /MIR

)

if %today%==Mon (

   robocopy c:\CoFiles %backupdir% /E /MIR

) else if %today%==Wed (

   robocopy c:\CoFiles %backupdir% /E /MIR

) else if %today%==Fri (

   robocopy c:\CoFiles %backupdir% /E /MIR

)

endlocal

Linux script:

#!/bin/bash

backupdir=/Backup

today=$(date +%a)

if [ $today == "Tue" ]

then

   rsync -av --delete /home/ $backupdir

elif [ $today == "Thu" ]

then

   rsync -av --delete /home/ $backupdir

fi

day=$(date +%d)

if [ $day == "01" ]

then

   rsync -av --delete /home/Payroll/CoFiles/ $backupdir

elif [ $day == "15" ]

then

   rsync -av --delete /home/Payroll/CoFiles/ $backupdir

fi

if [ $today == "Mon" ]

then

   rsync -av --delete /home/CoFiles/ $backupdir

elif [ $today == "Wed" ]

then

   rsync -av --delete /home/CoFiles/ $backupdir

elif [ $today == "Fri" ]

then

   rsync -av --delete /home/CoFiles/ $backupdir

fi

Note that both scripts use the robocopy command on Windows and rsync command on Linux to perform the backup. Also, the Linux script assumes that the user's home directory is located at /home/. You may need to adjust the directory paths to match the actual directory structure on your system. Finally, the scripts assume that they are run as root or by a user with sufficient privileges to access the directories being backed up.

Learn more about Windows here:

https://brainly.com/question/13502522

#SPJ11

Answer 2

The Windows script that automate a periodic file backup to a directory called backup on the local drive:

The Windows Script

echo off

setlocal

REM Get current day of the week

for /F "tokens=1 delims=," %%A in ('wmic path win32_localtime get dayofweek /format:list ^| findstr "="') do set %%A

REM Backup User's home directory on Tuesday and Thursday nights

if %dayofweek% equ 2 (

   xcopy /E /C /I /H /R /Y "C:\Users" "C:\Backup"

) else if %dayofweek% equ 4 (

   xcopy /E /C /I /H /R /Y "C:\Users" "C:\Backup"

)

REM Backup Company files on Monday, Wednesday, and Friday nights

if %dayofweek% equ 1 (

   xcopy /E /C /I /H /R /Y "C:\CoFiles" "C:\Backup"

) else if %dayofweek% equ 3 (

  xcopy /E /C /I /H /R /Y "C:\CoFiles" "C:\Backup"

) else if %dayofweek% equ 5 (

   xcopy /E /C /I /H /R /Y "C:\CoFiles" "C:\Backup"

)

REM Backup Payroll on the 1st and 15th of each month

for /F "tokens=1 delims=/" %%A in ("%date%") do set day=%%A

if %day% equ 1 (

   xcopy /E /C /I /H /R /Y "C:\Payroll" "C:\Backup"

) else if %day% equ 15 (

  xcopy /E /C /I /H /R /Y "C:\Payroll" "C:\Backup"

)

endlocal

Please ensure that you modify the file paths (such as C:Users, C:Payroll, /home/user, /home/Payroll, etc.) to accurately reflect the directories on your system. Before executing the scripts, make certain that the directory where the backup is saved (C:Backup, /Backup) already exists.

Read more about Windows script here:

https://brainly.com/question/26165623
#SPJ4


Related Questions

1. Visual design and font/background are both essential and considered vital for the success of a web. If you are the developer, which of the two will you be focused on?

Answers

Answer:

As a developer, I'd be focused on the two starting with the front end.

Explanation:

A front-end developer simply is a user-end or client-side developer. A front-end person in web design is responsible for how a website looks and feels like, essentially, the websites' users first impression.

This is a huge task and can be very daunting even for the best developers. Whilst the back-end or the engine of a website is critical and indispensable, it is important for a developer to master the principles of front-end development first as that gives him a better perspective as to how they can better create and configure a matching or suitable back end.

Most if not all are designed to achieve a particular purpose e.g.

Increase salescommunicate informationtrainingelicit information etc

The ease with which the user is able to interact with the website will determine the extent to which the purpose of the website is achieved.

Some of the qualities of a great user interface the front end developer must keep in mind are:

Clarity Conciseness Familiarity  EfficiencyConsistency Attractiveness

Back-end has to do with the part of the website called the server.

In addition to the server, there are two other critical components of the back-end of the website:

Application and Database.

Together, these three contribute to ensuring that you have a functional website. The server, application and database, all control what happens on the front end and results in what the user will see via the browser.

There are many high-functioning websites today that have very poor interfaces.  A poor interface is a guarantee that people will spend less time on the website.

Conclusively, both ends are indispensable, as with most things, however, one should seek to understand how the user thinks and feels in relation to how they like to use a website before doing into the back-end to make that possible.

Cheers

There are different kinds of designs. As a developer, my Visual design would focus more on background.

Visual design is known to be a kind of design that strike equality between unity and variety. The use of design elements to work on the background and when done properly, gives users a nice experience.

Visual design is one that act to improve the design's or the product's aesthetic feeling.

Learn more about Visual design from

https://brainly.com/question/1332211

Can you all help me with this?

Answers

Answer:

(1)mobile smart phone.

(2)server computer.

(3)desktop computer

(4)laptop computer

(5)all in one computer

Describe some common types of charts.​

Answers

Bar chart.
Pie chart.
Line chart.

Answer:

The four most common are probably line graphs, bar graphs and histograms, pie charts, and Cartesian graphs. They are generally used for, and are best for, quite different things.

Explanation:

Line chart- A graph with points connected by lines to show how something changes in value: • as time goes by, • or as something else changes.

Example: how you are improving at a quiz each day.

Bar chart- A graph drawn using rectangular bars to show how large each value is. The bars can be horizontal or vertical. It is a really good way to show relative sizes. We can use bar graphs to show the relative sizes of many things, such as what type of car people have, how many customers a shop has on different days and so on.

Histogram- a graphical display of data using bars of different heights. It is similar to a Bar Chart, but a histogram groups numbers into ranges . The height of each bar shows how many fall into each range.

Pie chart- a special chart that uses "pie slices" to show relative sizes of data. It is a really good way to show relative sizes.

Cartesian chart- This is a type of chart that uses coordinates to pinpoint where something is on a map or graph. Using Cartesian Coordinates we mark a point on a graph by how far along and how far up it is.

a collection of logically related instructions is called _______​

Answers

Answer:

Data Base from what I know

Explanation:

A type of topology in which all the systems a connected a main cable ​

Answers

Answer:

Bus topology uses one main cable to which all nodes are directly connected. The main cable acts as a backbone for the network. One of the computers in the network typically acts as the computer server. The first advantage of bus topology is that it is easy to connect a computer or peripheral device.


1. Light of wavelength 900x10-9 m is emitted by a source. What is its frequency?​

Answers

therefore the frequency = 6×10^14

The frequency of the light is "[tex]6\times 10^{14}[/tex]".

Given values:

Wavelength,

[tex]\lambda = 900\times 10^{-9} \ m[/tex]

As we know the formula,

→ [tex]Frequency = \frac{C}{\lambda}[/tex]

By substituting the values, we get

→                   [tex]= \frac{3\times 10^8}{900\times 10^{-9}}[/tex]

→                   [tex]= \frac{10^8}{300\times 10^{-9}}[/tex]

→                   [tex]= 6\times 10^{14}[/tex]

Thus the above response is correct.  

Learn more about frequency here:

https://brainly.com/question/14459326

Which language gives instructions on how text should appear on a web page?
__Blank__ language gives instruction on how text should appear on a web page.

Answers

Answer:

HTML

HTML stands for HyperText Markup Language, so HTML gives you a way to “mark up” your text with tags that tell the browser how your text is structured.

Answer:

Markup language

Explanation:

Mediante el contacto de las ruedas dentadas un engranaje transmite un movimiento a. Rectilíneo b. Circular c. Ondulatorio

Answers

Answer:

La respuesta es b: circular

Explanation:

Las ruedas dentadas tienen dientes que rodean a todo el perímetro de la rueda , esto logra que las ruedas dentadas entren en contacto entre ellas sin causar fricción,el movimiento que realizan es circular.

Which activity is performed during high-level design in the V-model?
A. gathering user requirements
B. understanding system design
C. understanding component interaction
D. evaluate individual components
E. design acceptance test cases

Answers

Answer:

B or E don't sure which one

Sam works in a real estate office. An offer comes in on a house but the homeowners are on vacation. He needs the homeowners to sign a document to accept the offer. What should Sam do?

Answers

Answer:

Sam should send a digital document and request a signature. The could be fax or even an image printed out, if neither is possible get in contact with eh owner and his lawyer for more help.

Explanation:

Answer:

Sam should call the homeowners’ cell phone to inform them of the offer and fax a copy of the document using the office fax machine. The homeowner should sign the document and fax it back. Sam may also conduct an Internet search to find the fax machine closest to the client.

Explanation:

got it right on edge

create html code showing heading tags​

Answers

Answer:

Assuming you mean the HTML5 head tag, then this may work for you:

<!DOCTYPE HTML>

<html lang="en">

<head>

<title>My Very Awesome Website</title>

<link href="./css/main.css" rel="stylesheet"  />

<meta name="viewport" content="width=device-width, initial-scale=1" />

</head>

<body>

<h1>Hey look</h1>

<p>This is my awesome website!</p>

<h3>Note</h3>

<p>This website is supposed to be 100% awesome!</p>

</body>

</html>

WHAT IS MULTIMEDIA SUPPOSED TO MEAN ???

Answers

Answer:

using more than one medium of expression or communication

Answer:

It basically means using more than one expression or form of communication

Explanation:

3 uses for a GPS system other than for a satellite navigation system

Answers

Answer:

Location – determining a position. Navigation getting from one location to another. Tracking – monitoring object or a personal movement. Mapping – creating maps of the world.

Larry has created a web page using HTML 4.01. He hasn’t included the declaration in the file. When he opens the page in a browser, Larry sees a page load error. Why does Larry need to use the declaration in an HTML file?
A.
to define the HTML version in which the page is written
B.
to define the web language in which the page is written
C.
to tell the browser what the content is
D.
to check whether the code is error-free

Answers

Answer:

To define the html version in which the page is written.

PLS HELP
1. You can tape a movie off Showtime.
a. if you use it for educational purposes.
b. only if you have written permission from the company.
c. so that it may be archived.
d. to use as an entertainment for your great students.

2. You may photocopy parts of the encyclopedia:
a. if it is for your use only.
b. only if your copy is of the subject you are researching.
c. if you don’t have a copy at home.
d. to pass out to all your students.

3. You may record a local symphony concert to share with your class:
a. as long as you don’t sell tickets to hear it.
b. as long as you use it at a listening center in your room.
c. if you relate it to your lessons.
d. you may not record a public performance of any kind.

4. You may make a copy of a computer program:
a. if you are giving it to a friend.
b. as long as you purchased it and are using it for a back-up copy.
c. as long as you downloaded it from the internet.
d. you may not copy software.

5. You may use any image from the Internet or clip art software:
a. if you know that no one will know.
b. if you save it as an “image” and give it a new name.
c. as long as it is confirmed to be “royalty free”.
d. you cannot copy any photograph, artwork, or image without permission.

Answers

Answer:

1. so that it may be archived

2.to pass out to all your students

3.if you relate it to your lessons

4.as long as you've purchased it and you are using it for back up copy

5.C

What was the biggest challenge you faced in getting to where you are today and how did you overcome it? Peer counseling

Answers

The biggest challenge I still am faced with today is loosing weight, it can be different for everyone but that is mine. I overcomed it by eating a lot better and not so much junk food.

Why is computer literacy is important.

Answers

Cause it’s a important  skill process and they want there employees to have basic skill on pc or computers. They come depending on computers and it’s most likely to be more successful on education with the use of computers

What is Binary



A part of a computer


A base 2 number system


A computer program


Software for a computer

Answers

The answer to your question would be B. A base 2 number system.

characteristics of the printer​

Answers

Important printer characteristics include resolution, speed, color, and cache memory.

the computer stores the data and information on the ______​

Answers

Answer:

Primary memory, it might be cpu but i think its primary memory

Explanation:

Which actions changed the look of the following word?

A. The Spelling & Grammar function marked the word as an error.
B. The style of the word was set to underline.
C. The user changed the font size.
D. The word was set in italics, and then underlined.

Answers

Answer:

D

Explanation:

The actions applied to change the look of the word are:

1. It was set to italics. This can be done easily by highlighting the word => press Ctrl + I together on the keyboard.

2. Next is to set to underline. While still highlighted => press Ctrl + U together in the keyboard.

Answer:

D

Explanation:

Please help!!
The following are two different images that are encoded using the same algorithm. The images are each in a 5 by 5 grid of pixels where each pixel is black, white, red, green or blue.

The image on the left gets encoded and compressed down to 21 digits while the image on the right gets compressed down to 25 digits. Although the same algorithm was used to encode and compress these images, why are the end results a different length?


The algorithm was probably used improperly in the image on the right, causing it to be a longer length than it should have been.

Because this is a lossy compression, sometimes information is lost during the compression.

The amount of size reduction from compression depends on the amount of redundancy in the original data.

The image on the right uses more colored squares and therefore requires more digits to represent the pixels.

Answers

Answer: The amount of size reduction from compression depends on the amount of redundancy in the original data.

The reason why the end results have a different length is because: C. The amount of size reduction from compression depends on the amount of redundancy in the original data.

What is a lossy compression?

A lossy compression is also referred to as irreversible compression and it can be defined as a type of data encoding (data compression algorithm) in which the data in a file such as an image, is removed by using inexact approximations, in order to reduce the amount of size of a file after decompression.

Since the same algorithm was used to encode and compress these images, the reason why the resulting images have a different length is simply because the amount of size reduction from compression depends on the amount of redundancy in the original image file (data).

Read more on lossy compression here: https://brainly.com/question/17542014

A loan of $12000 was borrowed from the bank at 14% per annum calculate the interest on the loan at the end of the first year ?​

Answers

Answer:

lmasjsjsjssjjssjjssjsjjsksakkalaaooaa

Loan borrowed = $12,000

Percentage of interest on the loan per annum = 14%

We know that :

[tex]\color{hotpink}\tt \: Simple \: interest = \color{plum}\frac{principal \times rate \times time}{100} [/tex]

In this case :

principal = $12000rate = 14%time = 1 year

Simple interest at the end of the first year :

[tex] = \tt \frac{12000 \times 14 \times 1}{100} [/tex]

[tex] = \tt \frac{168000}{100} [/tex]

[tex]\color{plum}\tt = \$1680[/tex]

Thus, interest = $1680

Therefore, total interest on the loan at the end of one year = $1680

Pls help I’m not trying to fail this

Answers

Answer:

B makes the most sense to me

Explanation:

Which item would not generate a desktop alert by default in Outlook 2016?

new contact created
meeting request received
email received
task assignment received
i couldn't find this awnser and my teacher is extending our test period for another 20 minutes. please help

Answers

Answer:

New contact created does not generate a desktop alert by default.

Explanation:

edg.2021

Answer:

A

Explanation:

In a series circuit, resistance is?

Answers

Answer:

In a series circuit, the total resistance is equal to the sum of all resistances.

Explanation:

The same current passes through each resistor, so each resistor does its job as you would expect.

For Example:

a series circuit has a 2 Ω (ohm) resistor, a 5 Ω resistor, and a 7 Ω resistor. The total resistance of the circuit is 2 + 5 + 7 = 14 Ω.

Para que se utilizan las siguientes plataformas: Matlab, Labview, VisualBasic, Mplab, Micropic, PicCompiller

Answers

Answer:

MATLAB (abreviatura de MATrix LABoratory, «laboratorio de matrices») es un sistema de cómputo numérico que ofrece un entorno de desarrollo integrado (IDE) con un lenguaje de programación propio (lenguaje M). Está disponible para las plataformas Unix, Windows, macOS y GNU/Linux.

Entre sus prestaciones básicas se hallan la manipulación de matrices, la representación de datos y funciones, la implementación de algoritmos, la creación de interfaces de usuario (GUI) y la comunicación con programas en otros lenguajes y con otros dispositivos hardware.

LABVIEW (acrónimo de Laboratory Virtual Instrument Engineering Workbench) es una plataforma y entorno de desarrollo para diseñar sistemas, con un lenguaje de programación visual gráfico pensado para sistemas hardware y software de pruebas, control y diseño, simulado o real y embebido.

Visual Basic (VB) es un lenguaje de programación dirigido por eventos, desarrollado por Alan Cooper para Microsoft. Este lenguaje de programación es un dialecto de BASIC, con importantes agregados. Su primera versión fue presentada en 1991, con la intención de simplificar la programación utilizando un ambiente de desarrollo.

MPLAB es un editor IDE gratuito, destinado a productos de la marca Microchip. Este editor es modular, permite seleccionar los distintos microcontroladores soportados, además de permitir la grabación de estos circuitos integrados directamente al programador.

MICROPICUn PIC es un circuito integrado programable (Programmable Integrated Circuited), el cual contiene todos los componentes para poder realizar y controlar una tarea, por lo que se denomina como un microcontrolador. Los PIC son una familia de microcontroladores tipo RISC fabricados por Microchip Technology Inc. y derivados del PIC1650, originalmente desarrollado por la división de microelectrónica de General Instrument.

PICCOMPILER

El Portable C Compiler o Compilador de C Portable (también conocido como pcc o, algunas veces, como pccm - máquina de compilador de C portable) fue uno de los primeros compiladores para el lenguaje de programación C escrito por Stephen C. Johnson de los Laboratorios Bell a mediados de los 70, basado, en parte, en las ideas de un trabajo previo de Alan Snyder en 1973.

Explanation:

MATLAB (abreviatura de MATrix LABoratory, «laboratorio de matrices») es un sistema de cómputo numérico que ofrece un entorno de desarrollo integrado (IDE) con un lenguaje de programación propio (lenguaje M). Está disponible para las plataformas Unix, Windows, macOS y GNU/Linux.

Entre sus prestaciones básicas se hallan la manipulación de matrices, la representación de datos y funciones, la implementación de algoritmos, la creación de interfaces de usuario (GUI) y la comunicación con programas en otros lenguajes y con otros dispositivos hardware.

LABVIEW (acrónimo de Laboratory Virtual Instrument Engineering Workbench) es una plataforma y entorno de desarrollo para diseñar sistemas, con un lenguaje de programación visual gráfico pensado para sistemas hardware y software de pruebas, control y diseño, simulado o real y embebido.

Visual Basic (VB) es un lenguaje de programación dirigido por eventos, desarrollado por Alan Cooper para Microsoft. Este lenguaje de programación es un dialecto de BASIC, con importantes agregados. Su primera versión fue presentada en 1991, con la intención de simplificar la programación utilizando un ambiente de desarrollo.

MPLAB es un editor IDE gratuito, destinado a productos de la marca Microchip. Este editor es modular, permite seleccionar los distintos microcontroladores soportados, además de permitir la grabación de estos circuitos integrados directamente al programador.

MICROPICUn PIC es un circuito integrado programable (Programmable Integrated Circuited), el cual contiene todos los componentes para poder realizar y controlar una tarea, por lo que se denomina como un microcontrolador. Los PIC son una familia de microcontroladores tipo RISC fabricados por Microchip Technology Inc. y derivados del PIC1650, originalmente desarrollado por la división de microelectrónica de General Instrument.

PICCOMPILER

El Portable C Compiler o Compilador de C Portable (también conocido como pcc o, algunas veces, como pccm - máquina de compilador de C portable) fue uno de los primeros compiladores para el lenguaje de programación C escrito por Stephen C. Johnson de los Laboratorios Bell a mediados de los 70, basado, en parte, en las ideas de un trabajo previo de Alan Snyder en 1973.

Do all careers or professions need computer science?

Answers

Answer:

no computer science is only needed for coders and engineers not for all is needed ok or one thing is that you study for your knowledge ok

Explanation:

hope it helps you

please mark me as brainlist

What's wrong with these codes in code HS Karel challenges(7.1.2. Racing Karel) Codes: //Below is the program that have Karel move around the race track 8 times, and end in his starting location. Everytime Karel hits a corner, he will put a ball down. At the end there should be 8 balls on each corner. function start(){ for(var i = 0; i < 5; i++){ ballSet(); wallRun(); turnLeft(); } function wallRun(){ while(frontIsClear()){ move(); } } function ballSet(){ putBall(); } }

Answers

Answer:

The program only runs 5 five since the for loop statement is limited to loop only five times.

Explanation:

In programming, a for-loop statement is used to repeat a collection of events a definite number of times. The number of loops is specified and compared with a variable to execute a block of code.

The for-loop statement in the code above declares and initializes a variable "i" to zero, runs the block of code, and increments by one if it is less than 5.

To make it run eight times, the value five should be changed to 8 instead.

Answer: you have to change the 5 to 8 since its telling you to do it 8 times

Explanation: for(var i = 0; i < 5; i++) should be for(var i = 0; i < 8; i++)

HELLLP PLEASEEEEEEEEE

Answers

Answer:

torque

a twisting or turning force.

Hope it will help :)

Other Questions
Read the statement. Decide which of the three guidelines would best help you to check reliability.Even though I am not a medical doctor, I have studied the situation thoroughly and feel this type of surgery is performed too often without need.options:check the copyright datecheck the author's qualificationscheck with other references Identify the media rule that must be included in a cascading style sheet (css) file so that media queries can be used to associate specific style rules with specific devices. I'm have some issues with the problem shown in the screenshot and would love some help. The Royal Fruit Company produces two types of fruit drinks. The first type is 55% pure fruit juice, and the second type is 80% pure fruit juice. The company is attempting to produce a fruit drink that contains 70% pure fruit juice. How many pints of each of the two existing types of drink must be used to make 140 pints of a mixture that is 70% pure fruit juice? Complete the frequency table:Method of Travel to School Walk/Bike Bus Car Row totalsUnder age 15 18 165Age 15 and above 65 195Column totals 152 110 98 360What percentage of students age 15 and above travel to school by bus? Round to the nearest whole percent. A 4 kg toy car moves horizontally on a rough road with coefficient of kinetic friction 0.2. It accelerates from rest to 20 m/s in 10 s. Find (a) the total work done on the car The profit function for a certain commodity is given by () = 110 2 1000. Find the level of production that yields maximum profit and hence find the maximum profit. solve the following portion for x/11=8/3. round to nearest tenth Compared to the 80 million or so households in the u. s. consumer market, there are:________ A double amputee participates in adaptive skiing because he or she enjoys the freedom and thrill of the sport. this is an example of _____. transmission of pinworms can occur in all following except million years ago, this place (the top layer of the Grand Canyon), and all of the American Southwest, was a vast sea of sand A cup holds 2\9 litre of water. How many cups of water can be filled with 3litre bottle Clara's sewer line crosses through public land to attach to the public sewer. this is called a________. What is the natural treatment (fruit name) to remove the kidney stone? Dr. Peters has been so busy managing erratic blood sugars and chronic knee pain in one of his patients, that he didn't realize she turned 50 and is due for her first colonoscopy. With the help of _______ within the EHR, Dr. Peters is given reminders for specific screening tests for patients. The christian coalition is a(n) ________ group Describe how attraction and romantic love might be related. For example, does attraction always lead to love? If not, what factors of attraction might lead to feelings of love? One typical task that a unix system administrator will achieve by using the grep command is __________ One-fifth of a number x is less than 8. Find the greatest possible prime number x.