Snapshots:Example: Difference between revisions
Jump to navigation
Jump to search
(Created page with "An example: Changing to my quotes directory. <pre> [derek@novelty quotes]$ pwd /nfshomes/derek/work/quotes </pre> I see that i have a quote called '''redhat_sole_source_2007...") |
No edit summary |
||
Line 1: | Line 1: | ||
Note that in this example, the the directory ".snapshot" could also be either ".snapshots" or ".zfs/snapshot" depending on the filer serving your host. Just look for one of these three when you use the "ls -a" command. | |||
---- | |||
Changing to my quotes directory. | Changing to my quotes directory. |
Revision as of 15:12, 2 July 2013
Note that in this example, the the directory ".snapshot" could also be either ".snapshots" or ".zfs/snapshot" depending on the filer serving your host. Just look for one of these three when you use the "ls -a" command.
Changing to my quotes directory.
[derek@novelty quotes]$ pwd /nfshomes/derek/work/quotes
I see that i have a quote called redhat_sole_source_2007.doc.
[derek@novelty quotes]$ ls dlt_pdf_quote2007.pdf Quote_300086759.html redhat_solesource.pdf dlt_pdf_quote.pdf Quote_353511914.html soleSource2007.pdf dlt_quote.pdf Quote_367512608.html soleSource.pdf dy1014.xls Quote_367884529.html UMD_008.xls Quote_250530976.html redhat_sole_source_2007.doc
[derek@novelty quotes]$ ls -la redhat_sole_source_2007.doc -rw-r--r-- 1 derek derek 39936 Jan 23 2007 redhat_sole_source_2007.doc
I will remove it from the current file system.
[derek@novelty quotes]$ rm redhat_sole_source_2007.doc
As you can see it no longer is there.
[derek@novelty quotes]$ ls dlt_pdf_quote2007.pdf Quote_250530976.html Quote_367884529.html UMD_008.xls dlt_pdf_quote.pdf Quote_300086759.html redhat_solesource.pdf dlt_quote.pdf Quote_353511914.html soleSource2007.pdf dy1014.xls Quote_367512608.html soleSource.pdf
I am going to go into the last hourly snapshot hourly.0
[derek@novelty quotes]$ cd .snapshot/hourly.0
As you can see the quote is still here.
[derek@novelty hourly.0]$ ls dlt_pdf_quote2007.pdf Quote_300086759.html redhat_solesource.pdf dlt_pdf_quote.pdf Quote_353511914.html soleSource2007.pdf dlt_quote.pdf Quote_367512608.html soleSource.pdf dy1014.xls Quote_367884529.html UMD_008.xls Quote_250530976.html redhat_sole_source_2007.doc
I copy it back to the original directory.
[derek@novelty hourly.0]$ cp redhat_sole_source_2007.doc /nfshomes/derek/work/quotes/
Change back to the original directory.
[derek@novelty hourly.0]$ cd /nfshomes/derek/work/quotes/
And it is back.
[derek@novelty quotes]$ ls dlt_pdf_quote2007.pdf Quote_300086759.html redhat_solesource.pdf dlt_pdf_quote.pdf Quote_353511914.html soleSource2007.pdf dlt_quote.pdf Quote_367512608.html soleSource.pdf dy1014.xls Quote_367884529.html UMD_008.xls Quote_250530976.html redhat_sole_source_2007.doc