SlideShare a Scribd company logo
1 of 1
Download to read offline
I am in need of two "separate" files that I can save independently of each other written from
beginning to end. A crontab and an associated bash file that will delete all user's trash every
night at 10 p.m. I need to be able to attach both files to an email.
Solution
Using rsync to make a backup
->Basics
->Using the --delete flag
->Be lazy: use cron
Incremental backups with rsync
->Review of hard links
->Using cp -al
->Putting it all together
Isolating the backup from the rest of the system
->The easy (bad) way
->Keep it on a separate partition
->Keep that partition on a separate disk
->Keep that disk on a separate machine
Making the backup as read-only as possible
->Bad: mount/unmount
->Better: mount read-only most of the time
->Tempting but it doesn't seem to work: the 2.4 kernel's mount --bind
->My solution: using NFS on localhost
Extensions: hourly, daily, and weekly snapshots
->Keep an extra script for each level
->Run it all with cron
Known bugs and problems
->Maintaining Permissions and Owners in the snapshots
->mv updates timestamp bug
->Windows-related problems

More Related Content

More from brijeshagarwa329898l

Duroc Jersey pigs are typically red, but a sandy variation is also s.pdf
Duroc Jersey pigs are typically red, but a sandy variation is also s.pdfDuroc Jersey pigs are typically red, but a sandy variation is also s.pdf
Duroc Jersey pigs are typically red, but a sandy variation is also s.pdf
brijeshagarwa329898l
 
Discuss the economic impact of technological sophistication.Solu.pdf
Discuss the economic impact of technological sophistication.Solu.pdfDiscuss the economic impact of technological sophistication.Solu.pdf
Discuss the economic impact of technological sophistication.Solu.pdf
brijeshagarwa329898l
 
Why do rays run radially in a woody stemHow would wood produced i.pdf
Why do rays run radially in a woody stemHow would wood produced i.pdfWhy do rays run radially in a woody stemHow would wood produced i.pdf
Why do rays run radially in a woody stemHow would wood produced i.pdf
brijeshagarwa329898l
 
what is transport layer what are the typical attacks in transport l.pdf
what is transport layer what are the typical attacks in transport l.pdfwhat is transport layer what are the typical attacks in transport l.pdf
what is transport layer what are the typical attacks in transport l.pdf
brijeshagarwa329898l
 
wavelet decomposition process code in matlabSolution WAVE.pdf
wavelet decomposition process code in matlabSolution WAVE.pdfwavelet decomposition process code in matlabSolution WAVE.pdf
wavelet decomposition process code in matlabSolution WAVE.pdf
brijeshagarwa329898l
 
What happens if a red hot inoculation loop plunges into the nutrient .pdf
What happens if a red hot inoculation loop plunges into the nutrient .pdfWhat happens if a red hot inoculation loop plunges into the nutrient .pdf
What happens if a red hot inoculation loop plunges into the nutrient .pdf
brijeshagarwa329898l
 
What are speaking notes Have you used speaking notes before What wo.pdf
What are speaking notes Have you used speaking notes before What wo.pdfWhat are speaking notes Have you used speaking notes before What wo.pdf
What are speaking notes Have you used speaking notes before What wo.pdf
brijeshagarwa329898l
 
There are five components of internal control1) Control environme.pdf
There are five components of internal control1) Control environme.pdfThere are five components of internal control1) Control environme.pdf
There are five components of internal control1) Control environme.pdf
brijeshagarwa329898l
 

More from brijeshagarwa329898l (20)

I studied analysis in Japanese textbook. Though I know many theorems.pdf
I studied analysis in Japanese textbook. Though I know many theorems.pdfI studied analysis in Japanese textbook. Though I know many theorems.pdf
I studied analysis in Japanese textbook. Though I know many theorems.pdf
 
Heat transfer QuestionGiven a too hot to taste spoonful of soup.pdf
Heat transfer QuestionGiven a too hot to taste spoonful of soup.pdfHeat transfer QuestionGiven a too hot to taste spoonful of soup.pdf
Heat transfer QuestionGiven a too hot to taste spoonful of soup.pdf
 
Explain what it is that is used with a 9S12 processor to match a giv.pdf
Explain what it is that is used with a 9S12 processor to match a giv.pdfExplain what it is that is used with a 9S12 processor to match a giv.pdf
Explain what it is that is used with a 9S12 processor to match a giv.pdf
 
Duroc Jersey pigs are typically red, but a sandy variation is also s.pdf
Duroc Jersey pigs are typically red, but a sandy variation is also s.pdfDuroc Jersey pigs are typically red, but a sandy variation is also s.pdf
Duroc Jersey pigs are typically red, but a sandy variation is also s.pdf
 
Discuss the economic impact of technological sophistication.Solu.pdf
Discuss the economic impact of technological sophistication.Solu.pdfDiscuss the economic impact of technological sophistication.Solu.pdf
Discuss the economic impact of technological sophistication.Solu.pdf
 
Describe in detail the specimen of a potato with a drop of iodine in.pdf
Describe in detail the specimen of a potato with a drop of iodine in.pdfDescribe in detail the specimen of a potato with a drop of iodine in.pdf
Describe in detail the specimen of a potato with a drop of iodine in.pdf
 
define two modes of speciation and provide examples of eachSolut.pdf
define two modes of speciation and provide examples of eachSolut.pdfdefine two modes of speciation and provide examples of eachSolut.pdf
define two modes of speciation and provide examples of eachSolut.pdf
 
computer math Use the following to answer questions 1-2 In the q.pdf
computer math Use the following to answer questions 1-2 In the q.pdfcomputer math Use the following to answer questions 1-2 In the q.pdf
computer math Use the following to answer questions 1-2 In the q.pdf
 
CASe Stic ato wad duun SolutionAggregates used in this method a.pdf
CASe Stic ato wad duun SolutionAggregates used in this method a.pdfCASe Stic ato wad duun SolutionAggregates used in this method a.pdf
CASe Stic ato wad duun SolutionAggregates used in this method a.pdf
 
Write MatLAb code that would produce the following printSolution.pdf
Write MatLAb code that would produce the following printSolution.pdfWrite MatLAb code that would produce the following printSolution.pdf
Write MatLAb code that would produce the following printSolution.pdf
 
Why do rays run radially in a woody stemHow would wood produced i.pdf
Why do rays run radially in a woody stemHow would wood produced i.pdfWhy do rays run radially in a woody stemHow would wood produced i.pdf
Why do rays run radially in a woody stemHow would wood produced i.pdf
 
Write a java program that reads a number N as input and displays the.pdf
Write a java program that reads a number N as input and displays the.pdfWrite a java program that reads a number N as input and displays the.pdf
Write a java program that reads a number N as input and displays the.pdf
 
Why is the DNA fragment amplified with Phusion DNA into pGEM-T plasmi.pdf
Why is the DNA fragment amplified with Phusion DNA into pGEM-T plasmi.pdfWhy is the DNA fragment amplified with Phusion DNA into pGEM-T plasmi.pdf
Why is the DNA fragment amplified with Phusion DNA into pGEM-T plasmi.pdf
 
Which of these is a function of the skeletal system communication s.pdf
Which of these is a function of the skeletal system  communication s.pdfWhich of these is a function of the skeletal system  communication s.pdf
Which of these is a function of the skeletal system communication s.pdf
 
what is transport layer what are the typical attacks in transport l.pdf
what is transport layer what are the typical attacks in transport l.pdfwhat is transport layer what are the typical attacks in transport l.pdf
what is transport layer what are the typical attacks in transport l.pdf
 
Which monetary aggregate would you expect the Federal Reserve to hav.pdf
Which monetary aggregate would you expect the Federal Reserve to hav.pdfWhich monetary aggregate would you expect the Federal Reserve to hav.pdf
Which monetary aggregate would you expect the Federal Reserve to hav.pdf
 
wavelet decomposition process code in matlabSolution WAVE.pdf
wavelet decomposition process code in matlabSolution WAVE.pdfwavelet decomposition process code in matlabSolution WAVE.pdf
wavelet decomposition process code in matlabSolution WAVE.pdf
 
What happens if a red hot inoculation loop plunges into the nutrient .pdf
What happens if a red hot inoculation loop plunges into the nutrient .pdfWhat happens if a red hot inoculation loop plunges into the nutrient .pdf
What happens if a red hot inoculation loop plunges into the nutrient .pdf
 
What are speaking notes Have you used speaking notes before What wo.pdf
What are speaking notes Have you used speaking notes before What wo.pdfWhat are speaking notes Have you used speaking notes before What wo.pdf
What are speaking notes Have you used speaking notes before What wo.pdf
 
There are five components of internal control1) Control environme.pdf
There are five components of internal control1) Control environme.pdfThere are five components of internal control1) Control environme.pdf
There are five components of internal control1) Control environme.pdf
 

Recently uploaded

Recently uploaded (20)

IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.IPL Online Quiz by Pragya; Question Set.
IPL Online Quiz by Pragya; Question Set.
 
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptxREPRODUCTIVE TOXICITY  STUDIE OF MALE AND FEMALEpptx
REPRODUCTIVE TOXICITY STUDIE OF MALE AND FEMALEpptx
 
Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024Capitol Tech Univ Doctoral Presentation -May 2024
Capitol Tech Univ Doctoral Presentation -May 2024
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024UChicago CMSC 23320 - The Best Commit Messages of 2024
UChicago CMSC 23320 - The Best Commit Messages of 2024
 
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General QuizPragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
Pragya Champions Chalice 2024 Prelims & Finals Q/A set, General Quiz
 
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
Removal Strategy _ FEFO _ Working with Perishable Products in Odoo 17
 
size separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceuticssize separation d pharm 1st year pharmaceutics
size separation d pharm 1st year pharmaceutics
 
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptxHVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
HVAC System | Audit of HVAC System | Audit and regulatory Comploance.pptx
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT VẬT LÝ 2024 - TỪ CÁC TRƯỜNG, TRƯ...
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
The Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. HenryThe Last Leaf, a short story by O. Henry
The Last Leaf, a short story by O. Henry
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
ANTI PARKISON DRUGS.pptx
ANTI         PARKISON          DRUGS.pptxANTI         PARKISON          DRUGS.pptx
ANTI PARKISON DRUGS.pptx
 
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
Envelope of Discrepancy in Orthodontics: Enhancing Precision in Treatment
 
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
Mattingly "AI and Prompt Design: LLMs with Text Classification and Open Source"
 
Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17Features of Video Calls in the Discuss Module in Odoo 17
Features of Video Calls in the Discuss Module in Odoo 17
 
How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17How to Analyse Profit of a Sales Order in Odoo 17
How to Analyse Profit of a Sales Order in Odoo 17
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 

I am in need of two separate files that I can save independently.pdf

  • 1. I am in need of two "separate" files that I can save independently of each other written from beginning to end. A crontab and an associated bash file that will delete all user's trash every night at 10 p.m. I need to be able to attach both files to an email. Solution Using rsync to make a backup ->Basics ->Using the --delete flag ->Be lazy: use cron Incremental backups with rsync ->Review of hard links ->Using cp -al ->Putting it all together Isolating the backup from the rest of the system ->The easy (bad) way ->Keep it on a separate partition ->Keep that partition on a separate disk ->Keep that disk on a separate machine Making the backup as read-only as possible ->Bad: mount/unmount ->Better: mount read-only most of the time ->Tempting but it doesn't seem to work: the 2.4 kernel's mount --bind ->My solution: using NFS on localhost Extensions: hourly, daily, and weekly snapshots ->Keep an extra script for each level ->Run it all with cron Known bugs and problems ->Maintaining Permissions and Owners in the snapshots ->mv updates timestamp bug ->Windows-related problems