sk1418 / retmux Goto Github PK
View Code? Open in Web Editor NEWa tmux sessions backup/reload tool
License: MIT License
a tmux sessions backup/reload tool
License: MIT License
Is there have any way to backup/restore program? I know retmux not implement it yet, but is there any thought about it, such as do what OS sleep does.
非常实用的工具,希望越来越好。
got this error when trying to list backup
retmux# retmux -v
retmux 1.0.3
retmux -l prod
Details of backup:prod
========================================================================
Traceback (most recent call last):
File "/usr/local/bin/retmux", line 4, in <module>
__import__('pkg_resources').run_script('retmux==1.0.0', 'retmux')
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 658, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1438, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/retmux-1.0.0-py2.7.egg/EGG-INFO/scripts/retmux", line 92, in <module>
func(sys.argv[2])
File "/usr/local/lib/python2.7/dist-packages/retmux-1.0.0-py2.7.egg/tmuxbk/controller.py", line 89, in show_and_action
print '\n'.join(tmux.long_info())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 80-82: ordinal not in range(128)
Just tried installing and using this, only to find it tries to execute using #!/usr/bin/python
which resulted in a bad interpreter error. As Python3 is now the default Python executable it would be nice to upgrade this utility to support Python 3 without having to:
sudo apt install python2.7
retmux
to point to #!/usr/bin/python2.7
Hello,
Only the backups seems to works.
If I try to delete/list/restore a particular session by example, I have this issue:
retmux -l 20200402_194711
Details of backup:20200402_194711
Traceback (most recent call last):
File "/usr/local/bin/retmux", line 4, in <module>
__import__('pkg_resources').run_script('retmux==1.0.0', 'retmux')
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 696, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1614, in run_script
exec(code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/retmux-1.0.0-py2.7.egg/EGG-INFO/scripts/retmux", line 92, in <module>
func(sys.argv[2])
File "/usr/local/lib/python2.7/dist-packages/retmux-1.0.0-py2.7.egg/tmuxbk/controller.py", line 89, in show_and_action
print '\n'.join(tmux.long_info())
UnicodeEncodeError: 'ascii' codec can't encode characters in position 80-82: ordinal not in range(128)
If can help, you can find here my locale:
LANG=C
LANGUAGE=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
Best regards,
$ retmux -v
retmux 1.0.2
$ retmux -b
backing up the current tmux sessions
0:=:(,):=:1
Traceback (most recent call last):
File "/usr/bin/retmux", line 92, in
func(sys.argv[2])
File "/usr/lib/python2.7/site-packages/tmuxbk/controller.py", line 116, in do_backup
backup.backup_tmux(name)
File "/usr/lib/python2.7/site-packages/tmuxbk/backup.py", line 23, in backup_tmux
tmux.sessions = load_sessions()
File "/usr/lib/python2.7/site-packages/tmuxbk/backup.py", line 50, in load_sessions
session.size = eval(s_l[1])
File "", line 1
(,)
^
SyntaxError: invalid syntax
If session name has spaces, get_windows_from_session
will failed because session name will split by space and handle as argument.
It has same problem in get_panes_from_sess_win
kill_session
and other cmd which need a name.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.