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

Add to docs how to configure app for auto backup #11

Open
levibostian opened this issue Jun 5, 2018 · 1 comment
Open

Add to docs how to configure app for auto backup #11

levibostian opened this issue Jun 5, 2018 · 1 comment

Comments

@levibostian
Copy link
Owner

I was reading the docs for auto backup recently and it talks about how docs in getExternalStorage() are automatically backed up.

Add to docs how to exclude photos taken by Shutter.

@levibostian
Copy link
Owner Author

levibostian commented Jun 5, 2018

Looking over the docs for auto backup, I believe I can do something even better.

First off, as the library stands today, this is what we need to add to the README on how to exclude Shutter videos and photos from auto backup:

  • In manifest, add this:
<application ...
    android:fullBackupContent="@xml/my_backup_rules">
</application>
  • Create an XML file called my_backup_rules.xml in the res/xml/ directory. Inside, do:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
    <exclude domain="file" path="Pictures/"/>
    <exclude domain="file" path="Movies/"/>
</full-backup-content>

Now, about how I can make this even better.

Allow users to configure Shutter to using a specific directory name for photos and videos if they choose. This will give the power of the user to put Shutter photos and videos in one directory and exclude that one to make sure that their app or other libraries do not clash together by putting files together into the same directory.

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

No branches or pull requests

1 participant