Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to specify number of backup for each folders #77

Open
mizzunet opened this issue Mar 26, 2022 · 8 comments
Open

Ability to specify number of backup for each folders #77

mizzunet opened this issue Mar 26, 2022 · 8 comments

Comments

@mizzunet
Copy link

This is my config,

WHATTOSYNC=('/home/missu/.mozilla/firefox')
USE_OVERLAYFS="yes"
USE_BACKUPS="yes"
BACKUP_LIMIT=2

I'd like to add ~/.cache/mozlla but do not want asd to take backup for this folder. Can I achieve this now? Would you be able to make it possible?
So, the config to be like this,

WHATTOSYNC=('/home/missu/.mozilla/firefox'  '/home/missu/.cache/mozilla')
USE_OVERLAYFS="yes"
USE_BACKUPS="yes"
BACKUP_LIMIT=2
BACKUP_SECOND=0

As for now, a workaround is to, run two asd

@mizzunet mizzunet changed the title Ability to specific number of backup for each folders Ability to specify number of backup for each folders Mar 26, 2022
@manorit2001
Copy link
Collaborator

manorit2001 commented Mar 26, 2022

Right now it isn't possible, even I wanted to do it but some infrastructure change will be required to handle all this.

Adding BACKUP_SECOND is not really a good and scalable solution. My idea would be to allow users to install specific ASD configs from throughout the system by some asd install <config> command and the syncs will be handled by just one systemd instance of core-asd running in the system, It is just an idea and the feasibility of it is not tested at this stage.

Unfortunately, I don't have the bandwidth right now to work on it. If you'd be willing to work on this then I would be happy to review the PR. Otherwise, running two ASDs can work for the meanwhile as you said.

PS: If you are trying to sync the browser configs then I would suggest using profile-sync-daemon. I am not sure of its working but it is supposed to have some additional checks which are optimised for browser instances

@graysky2
Copy link
Owner

If you are trying to sync the browser configs then I would suggest using profile-sync-daemon.

Agreed.

@mizzunet
Copy link
Author

mizzunet commented Mar 26, 2022

The reason I'm using asd over psd is that OpenRC is my init. I never have managed to get service file working properly. OpenRC can't have "user" service files.

While, asd is to be ran as root, it works perfectly for me.

@mizzunet
Copy link
Author

Though, asd starts fine by openrc service

@graysky2
Copy link
Owner

I honestly haven't reviewed asd's code base in a while. But psd definitely requires systemd.

@manorit2001
Copy link
Collaborator

Both require systemd.

I think maybe he is not able to mimick the behaviour of systemctl --user in OpenRC. I am not sure exactly but psd is supposed to be started for each user and asd is supposed to work system-wide. Maybe that difference is causing troubles for him

@manorit2001
Copy link
Collaborator

I honestly haven't reviewed asd's code base in a while. But psd definitely requires systemd.

asd also uses the same AFAIR, there is also some upstart config too but I haven't really used it

@mizzunet
Copy link
Author

he is not able to mimick the behaviour of systemctl --user in OpenRC

It can't be. Someone has already requeted it, OpenRC/openrc#432

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants