Git Product home page Git Product logo

terbr-termuxbackuptool's Introduction


My name is Muhammad Faizan. A passionate developer from India. My main areas of interest are web and mobile development. Right now, I'm learning Flutter. Aside from this, I also do graphic design. In my spare time, I enjoy playing chess and reading.

Faizan's GitHub stats Top Langs

Currently I'm reading

And these are my top 5 recommendations:


terbr-termuxbackuptool's People

Contributors

jasponcoder avatar laraib07 avatar mralpha786 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

terbr-termuxbackuptool's Issues

Prevent Screen from sleeping

Using termux-wake-lock, it prevents the CPU from sleeping. Although I don't know if it is from Termux:API.
Using termux-wake-unlock, it exits wakelock.

You can check my branch (v4).
What do you suggest?

Add install and uninstall scripts and configure terbr

Sorry for me being late, I created install.sh and uninstall.sh and edited README.md to show documentation to install and uninstall terbr, I have also added option to allow Custom PREFIX. Feel free to remove or suggest something, but here is the problem. I need help setting things up in configure.sh. Sorry for committing changes without your consent for adding a feature.

I am quite busy.

Restore packages

I am trying to restore the packages. I see how on line 157 get the restore file. Would you be able to add the package list as well?

Error when directory has a space when restoring

When passing argument /storage/emulated/0/Any\ Directory\ with\ spaces/backup_file.bak to terbr -r or anything with restore option,

makes ${OPTARG} parses it as /storage/emulated/0/Any Directory with spaces/backup_file.bak causing an error:

/data/data/com.termux/files/usr/bin/terbr: line 147: [: /storage/emulated/0/Any: binary operator expected
Restoring from '/storage/emulated/0/Any Directory with spaces/backup_file.bak'

[*] Restoring Files...............
[It may take a while. Please wait...

tar: /storage/emulated/0/Any: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now

(Also if a directory other than Any Directory with spaces like Any, that doesn't solve the problem.)

I am currently working on it, but I may need some assistance.

Meta - Add CONTRIBUTING.md and also Add Releases?

Add CONTRIBUTING.MD

Sidenote

Sorry, if I just created a lot of work.
But, this could be added later.

Problem

How can users contribute?
What formatting and syntax will they follow?
etc....

Opinion

Create CONTRIBUTING.md and add etc....

I can't see the command i am typing

When using this tool after either backup or restore I am unable to see commands i am typing, like it goes in Password mode ( it's there but we can't see it ) to fix that you need to restart termux. Please solve this issue, Other than that, This tool is Awesome <3

Missing tab?

At


while getopts ':hvVbr:' arg; do
	case $arg in
		b) unset TERBR_RESTORE; TERBR_BACKUP=True
            ;;

        r) unset TERBR_BACKUP; TERBR_RESTORE=True; TERBR_RESTORE_FILE=${OPTARG};
            ;;

		V) TERBR_VERBOSE=True
            ;;

where

r) unset TERBR_BACKUP; TERBR_RESTORE=True; TERBR_RESTORE_FILE=${OPTARG};
is missing a tab on the rest of the case.

And also there are lots of spaces and tabs, is it necessary to correct them?

termux-setup-storage running everytime the script runs; backup "files" directory.

Request

Hi, I would like to run termux-setup-storage if the user has not run it yet.
I also would like to backup the "files" directory in order to backup directories and files created by the user.

Problem

I did edit the files, but I don't know the version naming scheme.

What to do

Edit CHANGELOG.md, Change Version Number ( Below the comment and delete the comment also. )
Create pull request.

Files changed

  • CHANGELOG.md
  • terbr

Option for backing up without listing packages

I like my backups clean, so I want this feature to exist (Or remove the functionality of listing packages when backing up).
Or maybe there was a bug? I still have not read the changes made to the program so I still not know.
Nevertheless I want the feature to provide an option to not list packages.

7z Support

If for example that the size is too large, it defaults to 7z in order to make it smaller.
But use with tar because 7z does not store owner/group.

Example

cd /data/data
tar -cf - com.termux | 7z a -si -mx=9 /storage/emulated/0/Download/com.termux.7z

But there are too many ultra options, maybe in the future.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.