My laptop was bought many years ago, the disk is not so large.
So I need to save the space of disk by preventing snapshots from using too much space.
Can anyone tell me how to do that? Thanks!
On Wed 26 Nov 2014 10:26:01 PM CST, Shimmey wrote:
My laptop was bought many years ago, the disk is not so large.
So I need to save the space of disk by preventing snapshots from using
too much space.
Can anyone tell me how to do that? Thanks!
Hi
You need to edit the /etc/snapper/configs/root file as you require. By
default timeline is off, so just need to edit the NUMBER one.
–
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel 3.12.28-4-default
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
Could you tell me in detail how to disable snapshot?
It costs a lot of sources of my old laptop every day. Thanks!
Hi
Just remove the /etc/cron.hourly and /etc/cron.daily jobs called suse.de-snapper and probably the snapper-zypp-plugin. That should be enough. But you probably need to go through and delete the snaphots after removing the cron jobs.
OK, I did almost everything. But where is snapper-zypp-plugin?
I guess it should be used for make snapshot when I run zypper to install or remove packages.
By the way, how do I remove all the snapshots files from my harddisk?
Can I remove the folder /.snapshots directly with super user privilege?
Thank you!
Hi
I would use the snapper tool, just for completeness;
zypper rm snapper-zypp-plugin
snapper list
snapper delete Nx - Ny
Where x-y is a number range or just x.
Thanks very much! I deleted all snapshots in my disk.
snapper-zypp-plugin is a package.
I guess it should be used for make snapshot when I run zypper to install or remove packages.
Yes. It creates a “Pre” snapshot before installing/removing packages, and a “Post” snapshot afterwards.
By the way, how do I remove all the snapshots files from my harddisk?
As already mentioned, with “snapper” or YaST->Snapper.
Can I remove the folder /.snapshots directly with super user privilege?
No, you shouldn’t. Use the tools designed for that purpose.
PS: You can configure/disable snapshots in /etc/snapper/configs/root, see here:
http://activedoc.opensuse.org/book/opensuse-reference/chapter-4-snapshotsrollback-with-snapper#sec.snapper.disable
See also the rest of that chapter for how to use snapper and manage snapshots.
I wouldn’t delete the cron jobs, they will get re-created when there is an update to snapper that you install. But uninstalling “snapper” should of course disable them as well…
Hey folks,
I just stumpled upon this thread as I read another thread about configuring openSuse for SSDs. Unfortunately I used Btrfs and didn’t think about snapshots written to the SSD. To keep it short, I followed all your steps, mentioned above. Will I be able to create a manual snapshot if I need to. And is there a way to safe the snapshot to some other disk?
You mean because of additional write accesses?
I wouldn’t see this as problem actually.
Snapshots are not really “written”. They are only references to the original files’ data, as long as the files don’t change. If a file is modified, the old content just isn’t deleted/overwritten when writing the new one and the “copy” in the snapshot still refers to the old data.
They use a special btrfs feature for that.
At least that’s how I understand it.
To keep it short, I followed all your steps, mentioned above. Will I be able to create a manual snapshot if I need to.
Depends on what steps you followed exactly…
If you uninstalled snapper, you won’t be able to create snapshots at all obviously.
If you just disabled snapshots in the config, you can.
And is there a way to safe the snapshot to some other disk?
No, because of the way snapshots work.
They are not backups, but something rather different.