0
votes
4answers
51 views

Copy files without changing owner [duplicate]

How to copy all files from /var/www onto a flash disk without changing owners of folders in the /var/www folder? (Or how to insert the whole /var/www folder into an archive and put it onto a flash ...
2
votes
1answer
146 views

How to Free Up Space in a Dynamically Growing qcow2 VM image?

This has happened to one of my VM's that's running CentOS under Proxmox. I copied about 40 GB of data into a VM. I then deleted that 40 GB data a day later. Now taking a backup of the same VM takes ...
0
votes
1answer
50 views

Get the most recent backup files [duplicate]

I'm googling for this, but the terms are so generic I'm getting way too many false positives, so what the hey, I'll ask here. I'm sure there's a simple answer but I don't generally script in *nix. ...
2
votes
3answers
106 views

determine user-modified files

I plan to reinstall my operating system since I messed up some stuff. Access to files and folders is painfully slow sometimes, even if they contain just a few files. But of course, I don't want to do ...
1
vote
1answer
219 views

Getting back rsync's deleted files [duplicate]

I accidentally rsync-ed to a server using the delete attribute when I shouldn't have. Is there any chance of getting the data on the server that rsync removed.. back?
3
votes
2answers
299 views

How can I backup a directory to NTFS while preserving Unix file attributes?

I want to make a backup of my home directory to an NTFS partition (an unfortunate limitation). However, when I last tried using just cp, the attributes (owner, etc) went away. How can I make a backup ...
1
vote
1answer
33 views

Back up snapshots without being admin

I would like to make a back up/snapshot of a folder where I have built various programs (~4.1 GB in size). The idea is to be able to quickly restore everything in this path to it's original state in ...
2
votes
1answer
805 views

What do you filter / exclude list when doing backup with rsync? [closed]

I'm trying to build a comprehensive filter / exclude file, to prevent backuping stuff that doesn't make sense do backup, such as temporary / cache data or easily recreatable files. I would appreciate ...
4
votes
1answer
291 views

How to compare attributes of two files on Linux ext4

cmp(1) will of course tell me if the contents of two files are identical, but in order to test restoring from backups I also wanted to compare the relevant (!) file attributes. So if I did something ...
3
votes
1answer
3k views

bash force copy over same file

Our sysadmin has created a backup system that creates snapshots of the hard drive. When I try to restore an older version from the snapshot: cp /path/to/snapshots/foo.bar /path/to/folder/foo.bar ...
7
votes
3answers
1k views

How to run a command when a directory's contents are updated?

There is a directory A whose contents are changed frequently by other people. I have made a personal directory B where I keep all the files that have ever been in A. Currently I just occasionally ...
3
votes
1answer
355 views

How to recover a missing file

I am running ubuntu and last week the system didn't let me alter files as if I had no write permissions. Then on reboot the system did a check of the system which took some time. Then everything went ...